Skip to content

Commit 983ba15

Browse files
committed
Update windows matcher to not compare empty os version
Signed-off-by: Derek McGowan <[email protected]>
1 parent 17c859f commit 983ba15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

defaults_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (m windowsmatcher) Match(p specs.Platform) bool {
5252

5353
if match && m.OS == "windows" {
5454
// HPC containers do not have OS version filled
55-
if p.OSVersion == "" {
55+
if m.OSVersion == "" || p.OSVersion == "" {
5656
return true
5757
}
5858

0 commit comments

Comments
 (0)