Bugfix - If graph is empty is_alive returns false.

Because self.graph evaluates to False

Change-Id: Ifcbdaffd12496c29efc6594aa2bb1111c0d6dfad
This commit is contained in:
Idan Hefetz 2019-07-02 11:39:01 +00:00
parent e5998619ed
commit 194e547fc8

View File

@ -25,7 +25,7 @@ class OperationalApis(object):
def is_alive(self, ctx):
try:
if self.graph and self.graph.ready:
if self.graph is not None and self.graph.ready:
return True
except Exception:
LOG.exception("is_alive check failed.")