@@ -44,7 +44,6 @@ def rollback_deploy_run(run_action: RunAction):
44
44
run_action ("runtime-rollback-action" )
45
45
run_tasks ("rollback-output.log" , run_action )
46
46
47
-
48
47
def run_tasks (file_tasks : str , run_action : RunAction ):
49
48
with open (file_tasks , "r" ) as file :
50
49
data = json .loads (file .read ().replace ("'" , '"' ))
@@ -53,6 +52,7 @@ def run_tasks(file_tasks: str, run_action: RunAction):
53
52
IAC_SELF_HOSTED = lambda ** i : run_action ("runtime-iac-action" , ** i ),
54
53
DEPLOY_SELF_HOSTED = lambda ** i : run_action ("runtime-deploy-action" , ** i ),
55
54
DESTROY_SELF_HOSTED = lambda ** i : run_action ("runtime-destroy-action" , ** i ),
55
+ PLAN = lambda ** i : run_action ("runtime-unified-action" , ** i ),
56
56
UNIFIED_IAC = lambda ** i : run_action ("runtime-unified-action" , ** i ),
57
57
UNIFIED_DEPLOY = lambda ** i : run_action ("runtime-unified-action" , ** i ),
58
58
UNIFIED_DESTROY = lambda ** i : run_action ("runtime-unified-action" , ** i ),
@@ -63,8 +63,10 @@ def run_tasks(file_tasks: str, run_action: RunAction):
63
63
runner = task_runners .get (task_type )
64
64
if "UNIFIED" in task_type :
65
65
runner and runner (run_id = data .get ("runId" ))
66
+ elif "PLAN" == task_type :
67
+ runner and runner (run_id = data .get ("runId" ))
66
68
else :
67
- runner and runner (run_task_id = t ["runTaskId" ])
69
+ runner and runner (run_task_id = t ["runTaskId" ])
68
70
69
71
70
72
def run (metadata ):
0 commit comments