Browse Source

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
Ankur Rishi 5 years ago
parent
commit
a9bf465455
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      python-agent/muranoagent/common/messaging/message.py

+ 1
- 1
python-agent/muranoagent/common/messaging/message.py View File

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

Loading…
Cancel
Save