Add image ID validation to kvmvm resource mgmt

rc-1.10
Sergey Shubin svs1370 3 years ago
parent ec4e63c2c8
commit 1ea7a27b21

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

Loading…
Cancel
Save