Skip to content

Automatic retry on duplicate AMI name via decorator fails due to improper exception handling #252

@kvick

Description

@kvick

During the refactor of _register_image to support ENA networking, the exception handling wasn't properly addressed as boto3 passes along the ClientError from botocore and the decorator is expecting EC2ResponseError which doesn't trigger the auto-incrementing name behavior.

The proposed change is to change the registration_retry decorator to use the ClientError vs EC2ResponseError.

Admittedly, this is not a common case, but we do see it typically due to (misconfigured) parallel bake pipelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions