Skip to content
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

#24910: Use ParseFirewallPolicyIDInsensitively for parsing API response #24913

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

harshavmb
Copy link
Contributor

Use ParseFirewallPolicyIDInsensitively for parsing API response rather ParseFirewallPolicyID as per below comment mentioned here.

// ParseFirewallPolicyIDInsensitively parses 'input' case-insensitively into a FirewallPolicyId
// note: this method should only be used for API response data and not user input

Reads are from API response, so ParseFirewallPolicyIDInsensitively needs to be used.

Fixes #24910.

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @harshavmb

Thanks for this PR - I've left one comment inline about returning the error if it's returned but otherwise this LGTM 👍

Thanks!

internal/services/firewall/firewall_resource.go Outdated Show resolved Hide resolved
@harshavmb
Copy link
Contributor Author

Hi @tombuildsstuff ,

Made the change! Over to you for the re-review.

@katbyte katbyte merged commit dde736f into hashicorp:main Feb 17, 2024
30 checks passed
@github-actions github-actions bot added this to the v3.93.0 milestone Feb 17, 2024
@harshavmb harshavmb deleted the github-24910 branch February 20, 2024 13:42
rizkybiz pushed a commit to rizkybiz/terraform-provider-azurerm that referenced this pull request Feb 21, 2024
…PI response (hashicorp#24913)

* hashicorp#24910: Use ParseFirewallPolicyIDInsensitively for parsing API response

* hashicorp#24910: capturing and returning error as per review
rizkybiz pushed a commit to rizkybiz/terraform-provider-azurerm that referenced this pull request Feb 29, 2024
…PI response (hashicorp#24913)

* hashicorp#24910: Use ParseFirewallPolicyIDInsensitively for parsing API response

* hashicorp#24910: capturing and returning error as per review
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants