Always return the Vpg Settings Identifier

This commit is contained in:
Wes Carroll
2020-08-04 11:23:37 -04:00
parent 5f786775dc
commit 56bbe59ea7
+1 -2
View File
@@ -88,9 +88,8 @@ function Add-ZertoVpgVm {
# Submit the request. Out to Null to prevent line returns while running.
$null = Invoke-ZertoRestRequest -uri $baseUrl -method POST -body ($Body | ConvertTo-Json -Depth 10)
}
if ($PSCmdlet.ParameterSetName -eq "VpgName") {
$vpgSettingsIdentifier
}
} else {
Write-Warning "No VMs found to add. Please check your parameters and try again."
if ($PSCmdlet.ParameterSetName -eq "VpgName") {