From d8cf4fc55685bc5efac69bd275b212692eac88d5 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 12 Apr 2017 09:35:40 -0600 Subject: [PATCH] check_status(): No-op if there's no proc object Signed-off-by: Zack Cerza --- teuthology/orchestra/daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/orchestra/daemon.py b/teuthology/orchestra/daemon.py index 18f873f374..5bd059ab4a 100644 --- a/teuthology/orchestra/daemon.py +++ b/teuthology/orchestra/daemon.py @@ -147,7 +147,8 @@ class DaemonState(object): :raises: CommandFailedError, if the process was run with check_status=True """ - return self.proc.poll() + if self.proc: + return self.proc.poll() class DaemonGroup(object): -- 2.39.5