Fix script level variable

This commit is contained in:
Wes Carroll
2020-04-07 10:18:37 -04:00
parent a5f3ad4de0
commit e12bf9d85e
@@ -22,7 +22,7 @@ function Set-ZertoUserCredential {
UserName = $UserCredential.UserName
Password = $UserCredential.GetNetworkCredential().Password
}
if ( $PSCmdlet.ShouldProcess( $script:zertoServer, "Updating hypervisor service account credentials" )) {
if ( $PSCmdlet.ShouldProcess( $script:zvmServer, "Updating hypervisor service account credentials" )) {
Invoke-ZertoRestRequest -uri $uri -Method PUT -body ($body | ConvertTo-Json)
}
}