From: tierno Date: Tue, 6 Jun 2017 16:25:15 +0000 (+0200) Subject: fixed issue at vimconn_openvim for extra disks X-Git-Tag: v2.0.2~24 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F1921%2F1;p=osm%2FRO.git fixed issue at vimconn_openvim for extra disks Change-Id: Ie43fc8d6ad878b397f9c512ce67baad863d8c56f Signed-off-by: tierno --- diff --git a/osm_ro/vimconn_openvim.py b/osm_ro/vimconn_openvim.py index e86b54db..e722dc8d 100644 --- a/osm_ro/vimconn_openvim.py +++ b/osm_ro/vimconn_openvim.py @@ -596,6 +596,9 @@ class vimconnector(vimconn.vimconnector): '''Returns the flavor identifier''' try: new_flavor_dict = flavor_data.copy() + for device in new_flavor_dict.get('extended', {}).get('devices', ()): + if 'image name' in device: + del device['image name'] new_flavor_dict["name"] = flavor_data["name"][:64] self._get_my_tenant() payload_req = json.dumps({'flavor': new_flavor_dict})