Skip to content

Commit

Permalink
public ip type validation now derived from enums
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed May 18, 2018
1 parent 49978ac commit 701f161
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azurerm/resource_arm_public_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ func resourceArmPublicIp() *schema.Resource {
"public_ip_address_allocation": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"static", "dynamic"}, true),
ValidateFunc: validation.StringInSlice([]string{
string(network.Static),
string(network.Dynamic),
}, true),
DiffSuppressFunc: ignoreCaseDiffSuppressFunc,
StateFunc: ignoreCaseStateFunc,
},
Expand Down

0 comments on commit 701f161

Please sign in to comment.