Skip to content

Commit 6d9a5f4

Browse files
fix: from_volume_id validatioon test fail (#757)
1 parent 8ade1ae commit 6d9a5f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scaleway/resource_instance_volume.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ func resourceScalewayInstanceVolume() *schema.Resource {
5454
Optional: true,
5555
ForceNew: true,
5656
Description: "Create a copy of an existing volume",
57-
ValidateFunc: validationUUID(),
57+
ValidateFunc: validationUUIDorUUIDWithLocality(),
5858
ConflictsWith: []string{"from_snapshot_id", "size_in_gb"},
5959
},
6060
"from_snapshot_id": {
6161
Type: schema.TypeString,
6262
Optional: true,
6363
ForceNew: true,
6464
Description: "Create a volume based on a image",
65-
ValidateFunc: validationUUID(),
65+
ValidateFunc: validationUUIDorUUIDWithLocality(),
6666
ConflictsWith: []string{"from_volume_id", "size_in_gb"},
6767
},
6868
"server_id": {

0 commit comments

Comments
 (0)