From f2395c26348052ce5d691923c1f5bfe3c31f4ef5 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Fri, 22 Feb 2019 07:11:40 -0500 Subject: [PATCH] Remove Var instead of Clear Remove each zvmVariable instead of clearing to support connectivity and timeout tests. --- ZertoApiWrapper/Public/Disconnect-ZertoServer.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ZertoApiWrapper/Public/Disconnect-ZertoServer.ps1 b/ZertoApiWrapper/Public/Disconnect-ZertoServer.ps1 index ad9c682..f0d6ee0 100644 --- a/ZertoApiWrapper/Public/Disconnect-ZertoServer.ps1 +++ b/ZertoApiWrapper/Public/Disconnect-ZertoServer.ps1 @@ -2,9 +2,9 @@ function Disconnect-ZertoServer { [cmdletbinding()] $uri = "session" Invoke-ZertoRestRequest -uri $uri -method DELETE - Clear-Variable -Name zvmServer -Scope Script - Clear-Variable -Name zvmPort -Scope Script - Clear-Variable -Name zvmLastAction -Scope Script - Clear-Variable -Name zvmHeaders -Scope Script - Clear-Variable -Name zvmLocalInfo -Scope Script + Remove-Variable -Name zvmServer -Scope Script + Remove-Variable -Name zvmPort -Scope Script + Remove-Variable -Name zvmLastAction -Scope Script + Remove-Variable -Name zvmHeaders -Scope Script + Remove-Variable -Name zvmLocalInfo -Scope Script }