Skip to content

Commit a7ee6d7

Browse files
authored
fix(baremetal): suppress misleading warning when using offer data source (#3174)
1 parent f2bad2b commit a7ee6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/verify/uuid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func IsUUIDWithLocality() schema.SchemaValidateDiagFunc {
9797

9898
func IsUUIDOrNameOffer() schema.SchemaValidateDiagFunc {
9999
return func(value any, path cty.Path) diag.Diagnostics {
100-
uuid, _ := value.(string)
100+
uuid := locality.ExpandID(value)
101101
if !validation.IsUUID(uuid) {
102102
return diag.Diagnostics{diag.Diagnostic{
103103
Severity: diag.Warning,

0 commit comments

Comments
 (0)