Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Add retry functionality to delete firewall settings#35

Merged
tbroden84 merged 2 commits intomainfrom
firewall/delete-with-retry
May 11, 2023
Merged

Add retry functionality to delete firewall settings#35
tbroden84 merged 2 commits intomainfrom
firewall/delete-with-retry

Conversation

@tbroden84
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Reported in cloudamqp/terraform-provider-cloudamqp#205

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants