-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(services): solve errors in EMR, RDS, S3 and VPC services #1913
Conversation
@@ -54,7 +54,7 @@ def __describe_db_instances__(self, regional_client): | |||
self.db_instances.append( | |||
DBInstance( | |||
id=instance["DBInstanceIdentifier"], | |||
endpoint=instance["Endpoint"]["Address"], | |||
endpoint=instance.get("Endpoint"), |
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.
Why are you retrieving the Endpoint
dict if you need the Address
in the check?
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.
Because endpoint is a dictionary that contains the address and the port.
try: | ||
regional_client = self.regional_clients[bucket.region] | ||
except Exception as error: | ||
logger.error( | ||
f"{error.__class__.__name__}[{error.__traceback__.tb_lineno}]: {error}" | ||
) | ||
try: |
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.
Why do you need two try
blocks?
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.
Because the first try does not have the regional_client defined and the second one has it.
except Exception as error: | ||
logger.error( | ||
f"{error.__class__.__name__}[{error.__traceback__.tb_lineno}]: {error}" | ||
) | ||
try: |
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.
Why do you need two try
blocks?
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.
Because the first try does not have the regional_client defined and the second one has it.
Description
Solve errors in S3 and VPC services:
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.