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,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ValidateFunc: validation.SingleIP(),
|
ValidateFunc: validation.IsIPv4Address,
|
||||||
},
|
},
|
||||||
|
|
||||||
"droplet_id": {
|
"droplet_id": {
|
||||||
|
|
|
@ -25,7 +25,7 @@ func resourceDigitalOceanFloatingIpAssignment() *schema.Resource {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
ValidateFunc: validation.SingleIP(),
|
ValidateFunc: validation.IsIPv4Address,
|
||||||
},
|
},
|
||||||
|
|
||||||
"droplet_id": {
|
"droplet_id": {
|
||||||
|
|
Loading…
Reference in New Issue