summaryrefslogtreecommitdiff
path: root/source/bottlerock.py
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-21 16:17:52 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-21 16:19:09 +0100
commit8644f2bb78bc40a78b619f24163fa01fd329886d (patch)
tree363feb914374e98566968d37d5ccc63fa1bc0c34 /source/bottlerock.py
parentb2756a025c3d5d786610e11b91f427b9b072dcc3 (diff)
downloadorchestration-8644f2bb78bc40a78b619f24163fa01fd329886d.tar.gz
Pass sha to get_defintions
Diffstat (limited to 'source/bottlerock.py')
-rw-r--r--source/bottlerock.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/bottlerock.py b/source/bottlerock.py
index a9228f4..465a001 100644
--- a/source/bottlerock.py
+++ b/source/bottlerock.py
@@ -79,6 +79,7 @@ def repo_update():
changes = request.json['changes']
for change in changes:
ref = change['ref']
+ sha = change['new']
if repo_name == DEFINITIONS:
if ref == orch_config.definitions_base_ref:
# if baseref changes trigger firehose
@@ -86,10 +87,10 @@ def repo_update():
return sendchange('repo_update',properties)
elif ref in orch_config.candidate_refs.keys():
slave = orch_config.candidate_refs[ref]
- properties = {"ref":ref}
+ properties = {"ref":ref,"sha":sha}
return sendchange('definitions_update_%s' % slave,properties)
elif repo_name == TEST_REPO:
- force = {"ref":"force"}
+ force = {"ref":"force","sha":sha}
return sendchange('definitions_update',force)
else:
properties = {'repo_name':repo_name,'ref':ref}