Exemple #1
0
 def bind(self, job):
     if not self.value:
         self.value = resolve_pointer(job, "inputs/" + self.name, None)
     return self
Exemple #2
0
 def bind(self, job):
     value_from = self.adapter.get('valueFrom')
     if value_from:
         self.value = resolve_pointer(job, value_from[1:], None)
     return self
Exemple #3
0
 def bind(self, job):
     value_from = self.adapter.get("valueFrom")
     if value_from:
         self.value = resolve_pointer(job, value_from[1:], None)
     return self
Exemple #4
0
 def bind(self, job):
     if not self.value:
         self.value = resolve_pointer(job, "inputs/" + self.name, None)
     return self
Exemple #5
0
 def _get_value(self, arg, job):
     if arg.get('value') is not None:
         return arg['value']
     if 'valueFrom' not in arg:
         raise Exception('No way to get value for arg %s' % arg)
     return resolve_pointer(job, arg['valueFrom'], None)