summaryrefslogtreecommitdiffstats
path: root/nova/notifications.py
diff options
context:
space:
mode:
authorNikhil Komawar <nikhil.komawar@rackspace.com>2012-08-10 11:12:27 -0400
committerNikhil Komawar <nikhil.komawar@rackspace.com>2012-08-21 15:03:36 +0000
commitff8d3d95d43212b786e97769fda89628a1724880 (patch)
tree9f07ca16f47038cb7ab40d1753706ea0d03aa2fe /nova/notifications.py
parent0272c063bbc32f1ff39f2baa8ae3f0764723ef73 (diff)
downloadnova-ff8d3d95d43212b786e97769fda89628a1724880.tar.gz
nova-ff8d3d95d43212b786e97769fda89628a1724880.tar.xz
nova-ff8d3d95d43212b786e97769fda89628a1724880.zip
Implements sending notification on metadata change
It would be good to have a notification sent every time there is change in the metadata. This merge prop implements sending a compute.instance.update event for the above change. fixes bug 1034547 Change-Id: I451796b6a83c4782df6f72f083755527ebd62a52
Diffstat (limited to 'nova/notifications.py')
-rw-r--r--nova/notifications.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/notifications.py b/nova/notifications.py
index 019db3388..73b318c5c 100644
--- a/nova/notifications.py
+++ b/nova/notifications.py
@@ -334,5 +334,8 @@ def info_from_instance(context, instance_ref, network_info,
image_meta_props = image_meta(system_metadata)
instance_info["image_meta"] = image_meta_props
+ # add instance metadata
+ instance_info['metadata'] = instance_ref['metadata']
+
instance_info.update(kw)
return instance_info