def bind(self, job): if not self.value: self.value = resolve_pointer(job, "inputs/" + self.name, None) return self
def bind(self, job): value_from = self.adapter.get('valueFrom') if value_from: self.value = resolve_pointer(job, value_from[1:], None) return self
def bind(self, job): value_from = self.adapter.get("valueFrom") if value_from: self.value = resolve_pointer(job, value_from[1:], None) return self
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)