Skip to content

Commit

Permalink
fix nas-id and nas-ip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Moreau committed Sep 16, 2024
1 parent d4453b1 commit c6f5929
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PowerFGT/Public/cmdb/user/radius.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}
}

Expand Down

0 comments on commit c6f5929

Please sign in to comment.