Merge pull request #8568 from chrisroberts/fix/hyperv-import

Update conditional check to use string equality
This commit is contained in:
Chris Roberts 2017-05-08 10:17:35 -07:00 committed by GitHub
commit 8062b4f61f
2 changed files with 7 additions and 7 deletions

View File

@ -88,7 +88,7 @@ if (!$switchname) {
}
# Enable nested virtualization if configured
if ($enable_virtualization_extensions) {
if ($enable_virtualization_extensions -eq "True") {
Set-VMProcessor -VM $vmConfig.VM -ExposeVirtualizationExtensions $true
}

View File

@ -172,7 +172,7 @@ if ($generation -ne 1) {
}
# Enable nested virtualization if configured
if ($enable_virtualization_extensions) {
if ($enable_virtualization_extensions -eq "True") {
Set-VMProcessor -VM $vm -ExposeVirtualizationExtensions $true
}