Permalink
Browse files

Change wait command to allow terminated processes

  • Loading branch information...
oldpatricka committed Aug 14, 2012
1 parent b6f4012 commit 3cef1ab00fa290cdc3b99bd2c0e66d0bed000ef9
Showing with 2 additions and 2 deletions.
  1. +2 −2 ceiclient/commands.py
View
@@ -811,10 +811,10 @@ def execute(client, opts):
if process:
state = process['process_state']
- if state == ProcessStateEnum.SPAWN:
+ if state in (ProcessStateEnum.SPAWN, ProcessStateEnum.TERMINATE):
return process
- if state in (ProcessStateEnum.ERROR, ProcessStateEnum.TERMINATE):
+ if state in (ProcessStateEnum.ERROR,):
print "FAILED. Process in %s state" % ProcessStateEnum.to_str(state)
sys.exit(1)

0 comments on commit 3cef1ab

Please sign in to comment.