Skip to content

Commit 0855ec7

Browse files
committed
fix set validation test
1 parent 7a85b54 commit 0855ec7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v1/instancetype.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ func ValidateLocationalInstanceTypes(ctx context.Context, client CloudInstanceTy
337337
}
338338

339339
// Validate that locational results are a subset of all-location results
340-
if len(locationalTypes) >= len(allLocationTypes) {
341-
return fmt.Errorf("locational instance types (%d) should be fewer than all-location types (%d)",
340+
if len(locationalTypes) > len(allLocationTypes) {
341+
return fmt.Errorf("locational instance types (%d) should not exceed all-location types (%d)",
342342
len(locationalTypes), len(allLocationTypes))
343343
}
344344

0 commit comments

Comments
 (0)