Skip to content

Commit a463635

Browse files
committed
only use the target ring property when it exists
1 parent b115578 commit a463635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uup-dump-get-windows-iso.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function Get-UupDumpIso($name, $target) {
134134
$langs = $_.Value.langs.PSObject.Properties.Name
135135
$editions = $_.Value.editions.PSObject.Properties.Name
136136
$result = $true
137-
$expectedRing = if ($target.ring) {
137+
$expectedRing = if ($target.PSObject.Properties.Name -contains 'ring') {
138138
$target.ring
139139
} else {
140140
'RETAIL'

0 commit comments

Comments
 (0)