1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix win_nssm credentials quoting (#26226) (#26228)

Quote password to avoid Powershell special characters being interpreted.
This commit is contained in:
Wil Tan 2017-07-03 09:06:23 +10:00 committed by Jordan Borean
parent cd3a795e65
commit 483346d94b

View file

@ -428,7 +428,7 @@ Function Nssm-Update-Credentials
}
If ($results -ne $fullUser) {
$cmd = "set ""$name"" ObjectName $fullUser $password"
$cmd = "set ""$name"" ObjectName $fullUser '$password'"
$results = Nssm-Invoke $cmd
if ($LastExitCode -ne 0)