From d06172ee8427cb000506ec7297b8d3d0203450f1 Mon Sep 17 00:00:00 2001 From: Will Holland Date: Thu, 1 Oct 2015 08:52:27 +0100 Subject: Pass candidate ref as get_definitions --- ciatlib/master.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ciatlib/master.py b/ciatlib/master.py index 6bc0875..4786c09 100644 --- a/ciatlib/master.py +++ b/ciatlib/master.py @@ -151,6 +151,8 @@ class Pipeline: column_name = "%s %s" % (self.name, step.name) category = column_name self.categories.append(category) + if step.get_definitions: + get_definitions = self.candidate_refs[0] self.columns.append(Column( name = column_name, source_repo = BUILD_SLAVE_SCRIPTS, @@ -159,7 +161,7 @@ class Pipeline: slavenames = self.slavenames, properties = step.properties, timeout = step.timeout, - get_definitions = step.get_definitions)) + get_definitions = get_definitions)) def pipeline_from_dict(_dict): ''' given a dict of a pipeline return an object ''' -- cgit v1.2.1