Fixed connection testing logic.

This commit is contained in:
Wes Carroll
2019-02-21 13:26:24 -05:00
parent 753393dc2d
commit adb68d058f
@@ -11,7 +11,7 @@ function Invoke-ZertoRestRequest {
[switch]$returnHeaders
)
$callerErrorActionPreference = $ErrorActionPreference
if ( -not (Test-Path variable:script:zvmServer -and Test-Path variable:script:zvmPort) ) {
if ( -not ((Test-Path variable:script:zvmServer) -and (Test-Path variable:script:zvmPort)) ) {
Write-Error -Message "Zerto Connection does not Exist. Please run Connect-ZertoServer first to establish a connection"
break
}