Rework proxy publish functionality

* Task uuid is not a required parameter now;
* Exchange declaration does not require a connection object.

Change-Id: I9a77c9afe7d9fad007902d77d24a0b1a96c6c519
This commit is contained in:
Stanislav Kudriashev
2014-03-11 15:00:26 +02:00
committed by Stanislav Kudriashev
parent 37bdae0f0c
commit 8d3c00ccfd
6 changed files with 41 additions and 37 deletions

View File

@@ -103,7 +103,7 @@ class Server(object):
response = dict(state=state, **kwargs)
LOG.debug("Sending reply: %s", response)
try:
self._proxy.publish(response, task_uuid, reply_to)
self._proxy.publish(response, reply_to, correlation_id=task_uuid)
except Exception:
LOG.exception("Failed to send reply")