From cd98efe591119b5cec903858fa0058b182cfc79e Mon Sep 17 00:00:00 2001 From: Sam Lang Date: Mon, 18 Mar 2013 11:27:11 -0500 Subject: [PATCH] task/restart: Fix check for done The last command a restart script outputs is 'done' indicating the script does not require being restarted further. Handle this case properly. Signed-off-by: Sam Lang --- teuthology/task/restart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/restart.py b/teuthology/task/restart.py index 43153ae925..141f33c6b0 100644 --- a/teuthology/task/restart.py +++ b/teuthology/task/restart.py @@ -135,7 +135,7 @@ def task(ctx, config): log.debug('script command: {c}'.format(c=l)) ll = l.strip() cmd = ll.split(' ') - if cmd == "done": + if cmd[0] == "done": break assert cmd[0] == 'restart', "script sent invalid command request to kill task" # cmd should be: restart -- 2.39.5