Permalink
Browse files

Fix stage name exit msg

  • Loading branch information...
1 parent 4a95da7 commit 2951e73c2ee181d6b0427e68593ea082d3663369 Anton Grudko committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 n3d.py
View
4 n3d.py
@@ -103,7 +103,7 @@ def apply_stage(self, action):
stage = self.stages[self.stage_nums[self.next_stage]]
if not stage.get(action):
log.error('Stage %s has no %s action' % (
- self.stage_nums[self.next_stage], action))
+ self.stage_name(self.next_stage), action))
return True
oldcwd = os.getcwd()
os.chdir(self.options.work_dir)
@@ -125,7 +125,7 @@ def apply_stage(self, action):
time_done = datetime.now()
run_time = (time_done - time_init)
exit_log = "%s exit status: %s, run time: %s" % (
- self.stage_name(stage),
+ self.stage_name(self.next_stage),
self.cur_status,
run_time)
if int(self.cur_status) == 0:

0 comments on commit 2951e73

Please sign in to comment.