21 lines
662 B
Python
21 lines
662 B
Python
def skipStep(definition, action, outputs):
|
|
try:
|
|
if action in definition.skipstep:
|
|
condition = definition.skipstep[action]
|
|
|
|
#if outputs.get([condition["output"]]) is None:
|
|
#return False
|
|
#current_value = 1
|
|
#else:
|
|
current_value = outputs[condition["output"]]
|
|
#current_value = 1
|
|
|
|
if condition["operator"] == ">=":
|
|
if current_value >= condition["value"]:
|
|
print(f"Skipping {action.name}")
|
|
return True
|
|
|
|
except KeyError:
|
|
#outputs = manageFailure(error)
|
|
return False
|