From: Zack Cerza Date: Wed, 12 Apr 2017 15:35:40 +0000 (-0600) Subject: check_status(): No-op if there's no proc object X-Git-Tag: 1.1.0~433^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d8cf4fc55685bc5efac69bd275b212692eac88d5;p=teuthology.git check_status(): No-op if there's no proc object Signed-off-by: Zack Cerza --- 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):