Skip to content

Commit

Permalink
fix snapshot_id
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Apr 19, 2024
1 parent fcc5dd9 commit a33d952
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions upload-ami/src/upload_ami/upload_coldsnap.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,14 @@ def upload_coldsnap(
) -> str:
logging.info(f"Uploading image to coldsnap")

snapshot_id = str(
subprocess.check_output(
snapshot_id = subprocess.check_output(
[
"coldsnap",
"upload",
"--wait",
image_info["file"],
]
)
)
).decode().strip()

ec2 = boto3.client("ec2")
image_name = prefix + image_info["label"] + "-" + image_info["system"]
Expand Down

0 comments on commit a33d952

Please sign in to comment.