From 4e30e506d61f402c8a595322bbf50d98ef784772 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Mon, 17 Feb 2025 21:28:10 +0000 Subject: [PATCH] fix test --- vhdbuilder/packer/windows/windows-vhd-configuration.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"