awslabs / aws-support-tools

Tools and sample code provided by AWS Premium Support.
https://aws.amazon.com/premiumsupport/
Apache License 2.0
1.46k stars 801 forks source link

Fix MWAA verify env script None object #222

Closed Mercury2699 closed 1 year ago

Mercury2699 commented 1 year ago

Issue #, if available:

https://github.com/awslabs/aws-support-tools/issues/220

Description of changes: There is issue with code:

top_level_domain = TOP_LEVEL_DOMAIN.split(".").reverse().join(".")

AttributeError: ‘NoneType’ object has no attribute ‘join’ .reverse() will not return anything, so .join() won’t work, changing it to the correct syntax.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.