Commit 198e269f authored by David Johnson's avatar David Johnson

Move an RPC outside a DB transaction.

(This wasn't hurting anything, but I suppose it could have.)
parent d7c854a9
Pipeline #1892 passed with stage
in 2 seconds
...@@ -142,12 +142,13 @@ class CapnetDBMixin(agents_db.AgentDbMixin): ...@@ -142,12 +142,13 @@ class CapnetDBMixin(agents_db.AgentDbMixin):
LOG.debug("notifying capnet agent on %s : wfagent_create" LOG.debug("notifying capnet agent on %s : wfagent_create"
% (host,)) % (host,))
pass pass
# Notify our agent that it needs to create a port, or learn
# about an existing port, and update the capnet binding once
# it does that.
self._capnet_ext_agent_api.wfagent_create(context,wfagent,host)
pass pass
# Notify our agent that it needs to create a port, or learn
# about an existing port, and update the capnet binding once
# it does that.
self._capnet_ext_agent_api.wfagent_create(context,wfagent,host)
pass
def _wfagent_delete(self,context,wfagent): def _wfagent_delete(self,context,wfagent):
session = context.session session = context.session
......
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