Merge pull request #8568 from chrisroberts/fix/hyperv-import
Update conditional check to use string equality
This commit is contained in:
commit
8062b4f61f
|
@ -88,7 +88,7 @@ if (!$switchname) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Enable nested virtualization if configured
|
# Enable nested virtualization if configured
|
||||||
if ($enable_virtualization_extensions) {
|
if ($enable_virtualization_extensions -eq "True") {
|
||||||
Set-VMProcessor -VM $vmConfig.VM -ExposeVirtualizationExtensions $true
|
Set-VMProcessor -VM $vmConfig.VM -ExposeVirtualizationExtensions $true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ if ($generation -ne 1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Enable nested virtualization if configured
|
# Enable nested virtualization if configured
|
||||||
if ($enable_virtualization_extensions) {
|
if ($enable_virtualization_extensions -eq "True") {
|
||||||
Set-VMProcessor -VM $vm -ExposeVirtualizationExtensions $true
|
Set-VMProcessor -VM $vm -ExposeVirtualizationExtensions $true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue