summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCerberus <matt.dietz@rackspace.com>2011-05-16 15:45:40 -0500
committerCerberus <matt.dietz@rackspace.com>2011-05-16 15:45:40 -0500
commit9fb47870df17e66a2294af7f52eb2dc5845405c0 (patch)
tree40333e9c4455e4362da5cee8569b52a39538da26
parentea847e600249f1e3b65e04cfaa67014508c26e95 (diff)
Conceded :-D
-rw-r--r--nova/notifier/api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/notifier/api.py b/nova/notifier/api.py
index 5b9b8ea29..a2231055a 100644
--- a/nova/notifier/api.py
+++ b/nova/notifier/api.py
@@ -37,7 +37,7 @@ class BadPriorityException(Exception):
pass
-def notify(publisher_id, event_type, priority, message):
+def notify(publisher_id, event_type, priority, payload):
"""
Sends a notification using the specified driver
@@ -47,7 +47,7 @@ def notify(publisher_id, event_type, priority, message):
event_type - the literal type of event (ex. Instance Creation)
priority - patterned after the enumeration of Python logging levels in
the set (DEBUG, WARN, INFO, ERROR, CRITICAL)
- message - A python dictionary of attributes
+ payload - A python dictionary of attributes
Outgoing message format includes the above parameters, and appends the
following:
@@ -77,6 +77,6 @@ def notify(publisher_id, event_type, priority, message):
publisher_id=publisher_id,
event_type=event_type,
priority=priority,
- payload=message,
+ payload=payload,
timestamp=str(datetime.datetime.utcnow()))
driver.notify(msg)