Skip to content

Commit

Permalink
ami-copy-regions: Also include origin region (us-east-1)
Browse files Browse the repository at this point in the history
So that we can have this list be canonical and drop the other one.
  • Loading branch information
cgwalters committed Oct 3, 2018
1 parent ed01490 commit 6851b50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ami-copy-regions
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ for ami in amis:
print("Failed to await: {}".format(ami))

# Write our output JSON
ami_json = []
ami_json = [{'name': args.source_region,
'hvm': args.source_image_id}]
for ami in amis:
ami_json.append({'name': ami.region,
'hvm': ami.iid})
Expand Down

0 comments on commit 6851b50

Please sign in to comment.