summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkur Rishi <ankur.rishi@gmail.com>2014-05-02 16:46:25 -0700
committerAnkur Rishi <ankur.rishi@gmail.com>2014-05-02 16:46:25 -0700
commita9bf46545502afb9991f7ffd65406797b79d1716 (patch)
treeb6c11121019c12a3807032399c2df58471f07604
parent8490ff823c328fbb5c06f9ef0b08395434762134 (diff)
Correct murano-agent reference to message headers0.5.0release-0.5
The python-murano agent refers to a 'header' attribute when trying to extract the message id from the list of headers. The message object is of the class kombu.transport.pyamqp.Message, which does not have a 'header' attribute, but a 'headers' attribute. The reference needs to be corrected to 'headers' Change-Id: Ibf470090e01d159cdfea13d142f6b712c649183a Closes-Bug: #1315571
Notes
Notes (review): Verified+2: Jenkins Code-Review+1: Serg Melikyan <smelikyan@mirantis.com> Code-Review+1: Timur Nurlygayanov <tnurlygayanov@mirantis.com> Code-Review+2: Timur Sufiev <tsufiev@mirantis.com> Workflow+1: Timur Sufiev <tsufiev@mirantis.com> Code-Review+2: Alexander Tivelkov <ativelkov@mirantis.com> Submitted-by: Jenkins Submitted-at: Mon, 05 May 2014 08:32:13 +0000 Reviewed-on: https://review.openstack.org/91924 Project: stackforge/murano-agent Branch: refs/heads/master
-rw-r--r--python-agent/muranoagent/common/messaging/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-agent/muranoagent/common/messaging/message.py b/python-agent/muranoagent/common/messaging/message.py
index f92372d..c6bb83f 100644
--- a/python-agent/muranoagent/common/messaging/message.py
+++ b/python-agent/muranoagent/common/messaging/message.py
@@ -25,7 +25,7 @@ class Message(object):
25 self._connection = connection 25 self._connection = connection
26 self._message_handle = message_handle 26 self._message_handle = message_handle
27 if message_handle: 27 if message_handle:
28 self.id = message_handle.header.get('message_id') 28 self.id = message_handle.headers.get('message_id')
29 else: 29 else:
30 self.id = None 30 self.id = None
31 31