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
This commit is contained in:
Nikhil Komawar 2012-08-10 11:12:27 -04:00
parent 72ec37a8e2
commit 597fcd61b2

View File

@ -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