take $jsonObject.ManualDesktopSpec.VirtualCenter
ManualDesktopSpec.VirtualCenter of json file was not taken care of. This could cause new-hvpool fail when creating with json file and there are multiple vcenters added to broker.
This commit is contained in:
@@ -4561,6 +4561,9 @@ function New-HVPool {
|
|||||||
} elseIf ($jsonObject.type -eq "MANUAL") {
|
} elseIf ($jsonObject.type -eq "MANUAL") {
|
||||||
$MANUAL = $true
|
$MANUAL = $true
|
||||||
$poolType = 'MANUAL'
|
$poolType = 'MANUAL'
|
||||||
|
if ($null -ne $jsonObject.ManualDesktopSpec.VirtualCenter) {
|
||||||
|
$vCenter = $jsonObject.ManualDesktopSpec.VirtualCenter
|
||||||
|
}
|
||||||
$userAssignment = $jsonObject.ManualDesktopSpec.userAssignment.userAssignment
|
$userAssignment = $jsonObject.ManualDesktopSpec.userAssignment.userAssignment
|
||||||
$automaticAssignment = $jsonObject.ManualDesktopSpec.userAssignment.AutomaticAssignment
|
$automaticAssignment = $jsonObject.ManualDesktopSpec.userAssignment.AutomaticAssignment
|
||||||
$source = $jsonObject.ManualDesktopSpec.source
|
$source = $jsonObject.ManualDesktopSpec.source
|
||||||
|
|||||||
Reference in New Issue
Block a user