diff --git a/vhdbuilder/packer/windows/windows-vhd-configuration.ps1 b/vhdbuilder/packer/windows/windows-vhd-configuration.ps1 index f46c8a84755..818d504194e 100644 --- a/vhdbuilder/packer/windows/windows-vhd-configuration.ps1 +++ b/vhdbuilder/packer/windows/windows-vhd-configuration.ps1 @@ -27,12 +27,11 @@ $CPU_ARCH = switch ($cpu.Architecture) { Write-Output ($cpu | ConvertTo-Json) -if ([string]::IsNullOrEmpty($windowsVersion.previousLatestVersion)) { +if ([string]::IsNullOrEmpty($CPU_ARCH)) { Write-Output "Unknown architecture for CPU ${cpu.Name} with arch ${cpu.Architecture}" throw "Unsupported architecture for SKU $windowsSKU for CPU ${cpu.Name} with arch ${cpu.Architecture}" } - $HelpersFile = "c:/k/components_json_helpers.ps1" $ComponentsJsonFile = "c:/k/components.json" $WindowsSettingsFile = "c:/k/windows_settings.json"