validation.SingleIP() was deprecated in favor of validation.IsIPv4Address

This commit is contained in:
Andrew Starr-Bochicchio 2020-02-11 15:07:07 -05:00
parent be9a9a2328
commit c722e227fd
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func resourceDigitalOceanFloatingIp() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.SingleIP(),
ValidateFunc: validation.IsIPv4Address,
},
"droplet_id": {

View File

@ -25,7 +25,7 @@ func resourceDigitalOceanFloatingIpAssignment() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.SingleIP(),
ValidateFunc: validation.IsIPv4Address,
},
"droplet_id": {