Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ec2_instance find_instances to fix incompatibility with Python…
… 3.8 (#767) (#801) [PR #767/0ca065cf backport][stable-3] Update ec2_instance find_instances to fix incompatibility with Python 3.8 This is a backport of PR #767 as merged into main (0ca065c). SUMMARY Update ec2_instance find_instances to use temporary dict. instead of inline changes. Fixes #709 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_instance ADDITIONAL INFORMATION Current ec2_module iterates over a filters dictionary to perform hyphen to underscore substitution while popping keys in the process. This is not compatible with Python 3.8. I have simply created a second dictionary, I can also create a shallow copy via the copy() module if the team prefers. Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None>
- Loading branch information