]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
check_status(): No-op if there's no proc object 1061/head
authorZack Cerza <zack@redhat.com>
Wed, 12 Apr 2017 15:35:40 +0000 (09:35 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 12 Apr 2017 15:35:40 +0000 (09:35 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/daemon.py

index 18f873f3748745ffe0bdcaa2b0f092d312e76dd2..5bd059ab4ab7620f217fa804f72ecd54a7dbe36e 100644 (file)
@@ -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):