diff --git a/ZertoApiWrapper/Private/Invoke-ZertoRestRequest.ps1 b/ZertoApiWrapper/Private/Invoke-ZertoRestRequest.ps1 index 51d23d5..cf76386 100644 --- a/ZertoApiWrapper/Private/Invoke-ZertoRestRequest.ps1 +++ b/ZertoApiWrapper/Private/Invoke-ZertoRestRequest.ps1 @@ -14,6 +14,7 @@ function Invoke-ZertoRestRequest { 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 + } if ( Test-Path variable:script:zvmHeaders ) { $headers = $script:zvmHeaders } else {