Correct murano-agent reference to message headers
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
This commit is contained in:
parent
8490ff823c
commit
a9bf465455
@ -25,7 +25,7 @@ class Message(object):
|
|||||||
self._connection = connection
|
self._connection = connection
|
||||||
self._message_handle = message_handle
|
self._message_handle = message_handle
|
||||||
if message_handle:
|
if message_handle:
|
||||||
self.id = message_handle.header.get('message_id')
|
self.id = message_handle.headers.get('message_id')
|
||||||
else:
|
else:
|
||||||
self.id = None
|
self.id = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user