From 4f7eb2f4212dbe2ec664161c8ffaa45f7c1065d3 Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Apr 27 2018 15:46:27 +0000 Subject: Don't trim anything from AMI destination Now, destination field doesn't contain EC2 in it Signed-off-by: Sinny Kumari --- diff --git a/alt.fedoraproject.org/build/fedimg_vars.py b/alt.fedoraproject.org/build/fedimg_vars.py index 16dc022..474099a 100755 --- a/alt.fedoraproject.org/build/fedimg_vars.py +++ b/alt.fedoraproject.org/build/fedimg_vars.py @@ -85,7 +85,7 @@ def collect(release): if matches(upload['extra']): ami = upload['extra']['id'] # The region looks like "EC2 (REGION)", so we strip stuff. - region = upload['destination'][5:-1] + region = upload['destination'] results[name][region] = ami shelf['timestamp'] = datetime.utcnow()