-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_public_ip: renamed public_ip_address_allocation to allocation_method & added missing properties to datasource #2576
Conversation
…_method & added missing properties to datasource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few minor comments but this otherwise LGTM 👍
azurerm/resource_arm_public_ip.go
Outdated
return fmt.Errorf("Cannot specify publicIpAllocationMethod as Static for IPv6 PublicIp") | ||
} | ||
} | ||
|
||
if strings.ToLower(string(sku.Name)) == "standard" { | ||
if strings.ToLower(string(ipAllocationMethod)) != "static" { | ||
if strings.ToLower(sku) == "standard" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use strings.EqualFold(sku, "standard")
here
* azurerm_public_ip (used internally) added a field `allocation_method` to replace the field `public_ip_address_allocation` (deprecated) * Require terraform-provider-azurerm v1.21+ * hashicorp/terraform-provider-azurerm#2576
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
renamed
public_ip_address_allocation
toallocation_method
as it better matches the API & be a bit more cleardatasource was missing multiple properties so added them
Also changed the property to be case sensitive & updated all existing test code & examples to have the proper case