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

Add retry functionality to delete firewall settings #35

Merged
merged 2 commits into from
May 11, 2023

Conversation

tbroden84
Copy link
Contributor

@tbroden84 tbroden84 commented May 10, 2023

WHY are these changes introduced?

Lack of retry delete firewall settings like create/update do. Can cause nuhandled error if previous firewall rules not finished configuring.

WHAT is this pull request doing?

  • Rename Reply->Retry function name
  • Clean up switch cases for response.StatusCode
  • Retry functionality to delete firewall settings

HOW can this pull request be tested?

Locally change latest firewall settings to configure=false. Let it retry until it's set to true again.

tbroden84 added 2 commits May 10, 2023 15:11
Be able to catch and retry error code 40001, if previous firewall
configuration not yet finished.
@tbroden84 tbroden84 requested a review from dentarg May 11, 2023 08:26
@tbroden84 tbroden84 marked this pull request as ready for review May 11, 2023 08:26
@tbroden84 tbroden84 merged commit c29b4ad into main May 11, 2023
@tbroden84 tbroden84 deleted the firewall/delete-with-retry branch May 11, 2023 13:09
@tbroden84
Copy link
Contributor Author

Reported in cloudamqp/terraform-provider-cloudamqp#205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants