add missing .IsPresent for switch value

This commit is contained in:
Brownstein
2020-08-28 13:43:22 -04:00
parent 139e52f3e2
commit f0279633dd
+1 -1
View File
@@ -84,7 +84,7 @@ function Invoke-ZertoMove {
reverseProtection = -not $disableReverseProtection.IsPresent reverseProtection = -not $disableReverseProtection.IsPresent
} }
if ( $keepSourceVms -and -not $disableReverseProtection ) { if ( $keepSourceVms.IsPresent -and -not $disableReverseProtection.IsPresent ) {
Write-Verbose 'Disabling reverse protection as keepSourceVms requires it' Write-Verbose 'Disabling reverse protection as keepSourceVms requires it'
$body['reverseProtection'] = $false $body['reverseProtection'] = $false
} }