From c6f5929c01769ba9d1817ef9f977042b5a8fb901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Moreau?= Date: Mon, 16 Sep 2024 17:39:21 +0200 Subject: [PATCH] fix nas-id and nas-ip tests --- PowerFGT/Public/cmdb/user/radius.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PowerFGT/Public/cmdb/user/radius.ps1 b/PowerFGT/Public/cmdb/user/radius.ps1 index e2bdd714d..6d616ea40 100644 --- a/PowerFGT/Public/cmdb/user/radius.ps1 +++ b/PowerFGT/Public/cmdb/user/radius.ps1 @@ -448,7 +448,6 @@ function Set-FGTUserRADIUS { } if ( $PsBoundParameters.ContainsKey('nas_ip') ) { - $_radius | add-member -name "switch-controller-nas-ip-dynamic" -membertype NoteProperty -Value $true $_radius | add-member -name "nas-ip" -membertype NoteProperty -Value $nas_ip } @@ -458,8 +457,8 @@ function Set-FGTUserRADIUS { Write-Warning "-nas-id parameter is not available before FortiOS 7.0.x" } else { - $radius | add-member -name "nas-id-type" -membertype NoteProperty -Value "custom" - $radius | add-member -name "nas-id" -membertype NoteProperty -Value $nas_id + $_radius | add-member -name "nas-id-type" -membertype NoteProperty -Value "custom" + $_radius | add-member -name "nas-id" -membertype NoteProperty -Value $nas_id } }