Deleted old skipstep module
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
def skipStep(definition, action, outputs):
|
|
||||||
if hasattr(definition, "skipstep"):
|
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user