Fix metadata initialization 09/1309/1
authorChamarty <ravi.chamarty@riftio.com>
Wed, 15 Mar 2017 21:20:39 +0000 (17:20 -0400)
committerChamarty <ravi.chamarty@riftio.com>
Wed, 15 Mar 2017 21:20:39 +0000 (17:20 -0400)
Change-Id: Icf5279e716433994308de3044422fd9a8c2bcd3d
Signed-off-by: Chamarty <ravi.chamarty@riftio.com>
rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/compute.py

index fa0bfaf..be7a969 100644 (file)
@@ -330,7 +330,6 @@ class ComputeUtils(object):
         try:
             # Rift model only
             if vdu_params.supplemental_boot_data.has_field('custom_meta_data'):
-                metadata = dict()
                 for cm in vdu_params.supplemental_boot_data.custom_meta_data:
                     metadata[cm.name] = cm.value
                     kwargs['metadata'] = metadata