-
Notifications
You must be signed in to change notification settings - Fork 0
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
Release/1.5.7 #193
Release/1.5.7 #193
Conversation
…aggregator hasn't been created
…cript if status is not in 'CREATE_COMPLETE','UPDATE_COMPLETE'
We identified new issues on unchanged lines of code. Navigate to the Amazon CodeGuru Reviewer console to view the recommendations to fix them. |
@@ -150,6 +150,11 @@ def main(argv): | |||
print("Exiting...") | |||
sys.exit(1) | |||
|
|||
if pre_flight_cfn(account_session) == False: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
The ==
and !=
operators use the compared objects' __eq__
method to test if they are equal. To check if an object is a singleton, such as None
, we recommend that you use the is
identity comparison operator.
Similar issue at line numbers 183 and 202.
def pre_flight_cfn(session): | ||
status = True | ||
cfn = session.client('cloudformation') | ||
response = cfn.describe_stacks() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
The API method describe_stacks
returns paginated results instead of all results. Consider using the pagination API or checking one of the following keys in the response to verify that all results were returned: IsTruncated
, NextToken
.
On this release: