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:
Ankur Rishi 2014-05-02 16:46:25 -07:00
parent 8490ff823c
commit a9bf465455
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Message(object):
self._connection = connection
self._message_handle = message_handle
if message_handle:
self.id = message_handle.header.get('message_id')
self.id = message_handle.headers.get('message_id')
else:
self.id = None