validation.SingleIP() was deprecated in favor of validation.IsIPv4Address
This commit is contained in:
parent
be9a9a2328
commit
c722e227fd
|
@ -42,7 +42,7 @@ func resourceDigitalOceanFloatingIp() *schema.Resource {
|
|||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ValidateFunc: validation.SingleIP(),
|
||||
ValidateFunc: validation.IsIPv4Address,
|
||||
},
|
||||
|
||||
"droplet_id": {
|
||||
|
|
|
@ -25,7 +25,7 @@ func resourceDigitalOceanFloatingIpAssignment() *schema.Resource {
|
|||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ForceNew: true,
|
||||
ValidateFunc: validation.SingleIP(),
|
||||
ValidateFunc: validation.IsIPv4Address,
|
||||
},
|
||||
|
||||
"droplet_id": {
|
||||
|
|
Loading…
Reference in New Issue