Skip to content

Commit 21677eb

Browse files
committed
fix(baremetal): suppress misleading warning when using offer data source (scaleway#3174)
1 parent 9ec2fd7 commit 21677eb

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)