Commit 49143728 authored by David Johnson's avatar David Johnson

Bug: properly check if a binding is a wfagent with enough info to run.

parent e8d32fba
Pipeline #1167 skipped
......@@ -1497,7 +1497,9 @@ class CapnetNeutronAgent(service.Service):
# Fire off any workflow agents that need to be running...
for binding in bindings:
if 'wfagent' in binding and 'port' in binding:
if 'wfagent' in binding and not binding['wfagent'] is None \
and 'port' in binding and not binding['port'] is None:
LOG.debug("ensure_running(%s)" % (str(binding),))
self.wfagent_manager.ensure_running(binding['wfagent'],
binding['port'])
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment