Remove Var instead of Clear
Remove each zvmVariable instead of clearing to support connectivity and timeout tests.
This commit is contained in:
@@ -2,9 +2,9 @@ function Disconnect-ZertoServer {
|
|||||||
[cmdletbinding()]
|
[cmdletbinding()]
|
||||||
$uri = "session"
|
$uri = "session"
|
||||||
Invoke-ZertoRestRequest -uri $uri -method DELETE
|
Invoke-ZertoRestRequest -uri $uri -method DELETE
|
||||||
Clear-Variable -Name zvmServer -Scope Script
|
Remove-Variable -Name zvmServer -Scope Script
|
||||||
Clear-Variable -Name zvmPort -Scope Script
|
Remove-Variable -Name zvmPort -Scope Script
|
||||||
Clear-Variable -Name zvmLastAction -Scope Script
|
Remove-Variable -Name zvmLastAction -Scope Script
|
||||||
Clear-Variable -Name zvmHeaders -Scope Script
|
Remove-Variable -Name zvmHeaders -Scope Script
|
||||||
Clear-Variable -Name zvmLocalInfo -Scope Script
|
Remove-Variable -Name zvmLocalInfo -Scope Script
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user