You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (len(response["Images"]) ==1andresponse["Images"][0]["State"] =="available"):
183
-
returnami
184
-
else:
185
-
logger.warning(f"Flatcar release feed suggests image {ami} which does not exist on AWS in {region}")
186
-
except (ClientError, EndpointConnectionError):
187
-
# Sometimes we get back nonsense like:
188
-
# botocore.exceptions.ClientError: An error occurred (AuthFailure) when calling the DescribeImages operation: AWS was not able to validate the provided access credentials
189
-
# Don't hold that against the AMI.
190
-
logger.exception(f"Unable to check if AMI {ami} exists on AWS in {region}; assuming it does")
if (len(response["Images"]) ==1andresponse["Images"][0]["State"] =="available"):
191
183
returnami
184
+
else:
185
+
logger.warning(f"Flatcar release feed suggests image {ami} which does not exist on AWS in {region}")
186
+
except (ClientError, EndpointConnectionError):
187
+
# Sometimes we get back nonsense like:
188
+
# botocore.exceptions.ClientError: An error occurred (AuthFailure) when calling the DescribeImages operation: AWS was not able to validate the provided access credentials
189
+
# Don't hold that against the AMI.
190
+
logger.exception(f"Unable to check if AMI {ami} exists on AWS in {region}; assuming it does")
191
+
returnami
192
192
# We didn't find it
193
193
logger.warning(f"Flatcar release feed does not have an image for region {region} that exists on AWS")
0 commit comments