Skip to content
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

Merged
merged 10 commits into from
Jan 20, 2023
Merged

Release/1.5.7 #193

merged 10 commits into from
Jan 20, 2023

Conversation

@silavjy silavjy merged commit 3ab38dd into develop Jan 20, 2023
@silavjy silavjy mentioned this pull request Jan 20, 2023
@neisije
Copy link
Contributor

neisije commented Jan 20, 2023

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:
Copy link
Contributor

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.

Learn more

Similar issue at line numbers 183 and 202.

def pre_flight_cfn(session):
status = True
cfn = session.client('cloudformation')
response = cfn.describe_stacks()
Copy link
Contributor

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.

Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants