Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Set-NsxEdge(cliSettings): fix passwordExpiry (need to be ToString())
Browse files Browse the repository at this point in the history
Part 2...
  • Loading branch information
alagoutte committed Aug 12, 2019
1 parent 0a4544f commit 1601f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/PowerNSX.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -14055,7 +14055,7 @@ function Set-NsxEdge {

if ( $PsBoundParameters.ContainsKey('passwordExpiry') ) {
if ( invoke-xpathquery -node $_Edge -querymethod SelectSingleNode -Query "child::cliSettings/passwordExpiry" ) {
$_Edge.cliSettings.passwordExpiry = $passwordExpiry
$_Edge.cliSettings.passwordExpiry = $passwordExpiry.ToSingle()
} else {
Add-XmlElement -xmlroot $_Edge.cliSettings -xmlElementName "passwordExpiry" -xmlElementText $passwordExpiry.ToString()
}
Expand Down

0 comments on commit 1601f35

Please sign in to comment.