Update conditional check to use equality check

Fixes #8444
This commit is contained in:
Chris Roberts 2017-05-05 14:07:52 -07:00
parent 82550805a0
commit 9452e7cc38
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
}