Update WhatIf Message
This commit is contained in:
@@ -51,7 +51,7 @@ function Install-ZertoVra {
|
|||||||
$vraBasicNetwork['VraIPConfigurationTypeApi'] = "Dhcp"
|
$vraBasicNetwork['VraIPConfigurationTypeApi'] = "Dhcp"
|
||||||
}
|
}
|
||||||
$vraBasic['VraNetworkDataApi'] = $vraBasicNetwork
|
$vraBasic['VraNetworkDataApi'] = $vraBasicNetwork
|
||||||
if ($PSCmdlet.ShouldProcess("Preforming operation 'Install-Vra' on Host $hostName with the following data \n $($vraBasic | convertto-json)")) {
|
if ($PSCmdlet.ShouldProcess("Host $hostName with the following data $($vraBasic | convertto-json)")) {
|
||||||
Invoke-ZertoRestRequest -uri "vras" -method POST -body $($vraBasic | ConvertTo-Json)
|
Invoke-ZertoRestRequest -uri "vras" -method POST -body $($vraBasic | ConvertTo-Json)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user