Skip to content

Commit

Permalink
hotfix: Fix deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed May 22, 2024
1 parent 55ed46d commit 6d2f8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload-ami/src/upload_ami/upload_ami.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def copy_image(
"%Y-%m-%dT%H:%M:%SZ"
)
logging.info(f"Deprecating {copy_image['ImageId']} at {deprecate_at}")
ec2r.enable_image_deprecation(ImageId=image_id, DeprecateAt=deprecate_at)
ec2r.enable_image_deprecation(ImageId=copy_image['ImageId'], DeprecateAt=deprecate_at)
if public:
logging.info(f"Making {copy_image['ImageId']} public")
ec2r.modify_image_attribute(
Expand Down

0 comments on commit 6d2f8f0

Please sign in to comment.