Skip to content

Commit

Permalink
Merge pull request #197 from wayyoungboy/master
Browse files Browse the repository at this point in the history
fix check_task.py
  • Loading branch information
wayyoungboy authored May 9, 2024
2 parents 8550777 + 0321e54 commit 2948398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions handler/checker/check_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,16 @@ def execute_one_node(self,steps_nu,node):
self.stdio.verbose("run task in node: {0}".format(StringUtils.node_cut_passwd_for_log(node)))
steps = self.task[steps_nu]
nu = 1
task_variable_dict={}
for step in steps["steps"]:
try:
self.stdio.verbose("step nu: {0}".format(nu))
if len(self.cluster) == 0:
raise Exception("cluster is not exist")
step_run = StepBase(self.context, step, node, self.cluster, self.task_variable_dict)
step_run = StepBase(self.context, step, node, self.cluster, task_variable_dict)
self.stdio.verbose("step nu: {0} initted, to execute".format(nu))
step_run.execute(self.report)
self.task_variable_dict=step_run.update_task_variable_dict()
task_variable_dict=step_run.update_task_variable_dict()
if "report_type" in step["result"] and step["result"]["report_type"] == "execution":
self.stdio.verbose("report_type stop this step")
return
Expand Down
1 change: 0 additions & 1 deletion handler/checker/step/stepbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self, context, step, node, cluster, task_variable_dict):
self.step = step
self.node = node
self.cluster = cluster
self.task_variable_dict = {}
self.task_variable_dict = task_variable_dict

def execute(self, report):
Expand Down

0 comments on commit 2948398

Please sign in to comment.