-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rds module_util - add retry_code to get_rds_method_attributes and add…
… functionality for copying snapshot (#776) rds module_util - add retry_code to get_rds_method_attributes and add functionality for copying snapshot SUMMARY catch InvalidDBSecurityGroupStateFault when modifying db add retry_codes to return data from get_rds_method_attribute, and add unit tests to cover add functionality for copy_db_snapshot refactor to utilize the return values of get_rds_method_attribute ISSUE TYPE Feature Pull Request Bugfix Pull Request COMPONENT NAME rds ADDITIONAL INFORMATION Ran into the InvalidDBSecurityGroupStateFault error running integration tests for community.aws.rds_instance There is quite a bit of refactoring here so I wanted to explain why I made the changes I did: there were many instances of calling get_rds_method_attribute to retrieve certain values (waiter, retry_codes, which RDS resource), so I tried to remove the duplicate calls and use the return values already retrieved from the initial call. split wait_for_snapshot_status into wait_for_instance_snapshot_status and wait_for_cluster_snapshot_status, as they have different identifiers (they are also broken up in get_final_identifier) The initial goal here was simply to add retry_codes as a return value of get_rds_method_attribute and add copy_db_snapshot as a valid method, but working through that uncovered some bugs and just general redundancies, so I felt these were necessary changes. Reviewed-by: Alina Buzachis <None> Reviewed-by: Joseph Torcasso <None> Reviewed-by: Sloane Hertel <None>
- Loading branch information
1 parent
e919bec
commit b002515
Showing
3 changed files
with
526 additions
and
89 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
changelogs/fragments/776-module_util_rds-add-extra-retry-codes-refactor.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
minor_changes: | ||
- module.utils.rds - add retry_codes to get_rds_method_attribute return data to use in call_method and add unit tests (https://github.com/ansible-collections/amazon.aws/pull/776). | ||
- module.utils.rds - refactor to utilize get_rds_method_attribute return data (https://github.com/ansible-collections/amazon.aws/pull/776). | ||
|
||
bugfixes: | ||
- module.utils.rds - Catch InvalidDBSecurityGroupStateFault when modifying a db instance (https://github.com/ansible-collections/amazon.aws/pull/776). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.