From e12bf9d85edfa5aacce37aa7de448b84dcb89f9f Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Tue, 7 Apr 2020 10:18:37 -0400 Subject: [PATCH] Fix script level variable --- ZertoApiWrapper/Public/Set-ZertoUserCredential.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZertoApiWrapper/Public/Set-ZertoUserCredential.ps1 b/ZertoApiWrapper/Public/Set-ZertoUserCredential.ps1 index 423f02c..c2e1a9e 100644 --- a/ZertoApiWrapper/Public/Set-ZertoUserCredential.ps1 +++ b/ZertoApiWrapper/Public/Set-ZertoUserCredential.ps1 @@ -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) } }