Correct Param to match API Spec

This commit is contained in:
Wes Carroll
2019-04-06 22:51:38 -04:00
parent 31db21c325
commit b5b873ac18
@@ -10,15 +10,15 @@ function Invoke-ZertoFailoverCommit {
[Parameter(
HelpMessage = "Use this switch to reverse protect the VPG(s) to the source site."
)]
[switch]$reverseProtect
[switch]$reverseProtection
)
begin {
$baseUri = "vpgs"
if ( $reverseProtect ) {
$body = @{"IsReverseProtect" = $true}
if ( $reverseProtection ) {
$body = @{"IsReverseProtection" = $true}
} else {
$body = @{"IsReverseProtect" = $false}
$body = @{"IsReverseProtection" = $false}
}
}