Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
timmy-wright committed Feb 17, 2025
1 parent f0ae6c3 commit 4e30e50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vhdbuilder/packer/windows/windows-vhd-configuration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4e30e50

Please sign in to comment.