Remove Var instead of Clear
Remove each zvmVariable instead of clearing to support connectivity and timeout tests.
This commit is contained in:
1 parent
0328c80ca1
commit
f2395c2634
1 file changed
+5
-5
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user