From c491f1ed0f0f1389786d405a288c9dccfaabd206 Mon Sep 17 00:00:00 2001 From: Feanil Patel <feanil@edx.org> Date: Sun, 2 Mar 2014 18:21:09 -0500 Subject: [PATCH] Add the build id and iterate over the hash. --- util/vpc-tools/abbey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/vpc-tools/abbey.py b/util/vpc-tools/abbey.py index 68c7a32..b8fb710 100644 --- a/util/vpc-tools/abbey.py +++ b/util/vpc-tools/abbey.py @@ -527,7 +527,8 @@ def create_ami(instance_id, name, description): img.add_tag("configuration_ref", args.configuration_version) img.add_tag("configuration_secure_ref", args.configuration_secure_version) img.add_tag("configuration_secure_repo", args.configuration_secure_repo) - for repo,ref in git_refs: + img.add_tag("build_id", args.jenkins_build) + for repo,ref in git_refs.items(): key = "vars:{}".format(repo) image.add_tag(key, ref) else: -- libgit2 0.26.0