Add image ID validation to kvmvm resource mgmt

This commit is contained in:
Sergey Shubin svs1370
2021-09-16 09:44:15 +03:00
parent ec4e63c2c8
commit 1ea7a27b21

View File

@@ -392,6 +392,7 @@ func resourceCompute() *schema.Resource {
Type: schema.TypeInt,
Required: true,
ForceNew: true,
ValidateFunc: validation.IntAtLeast(1),
Description: "ID of the OS image to base this compute instance on.",
},