Bugfix - If graph is empty is_alive returns false.
Because self.graph evaluates to False Change-Id: Ifcbdaffd12496c29efc6594aa2bb1111c0d6dfad
This commit is contained in:
parent
e5998619ed
commit
194e547fc8
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user