minor fix at flavor, images 30/10030/1 sol006
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 25 Nov 2020 12:35:53 +0000 (12:35 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 25 Nov 2020 12:35:53 +0000 (12:35 +0000)
Change-Id: I5097bf1d6facb5f3080a20c32ede200d0bf3d20c
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_nbi/instance_topics.py

index 85e2c44..2613430 100644 (file)
@@ -417,7 +417,6 @@ class NsrTopic(BaseTopic):
                     if guest_epa:
                         flavor_data["guest-epa"] = guest_epa
 
-                    flavor_data["vim_info"] = []
                     flavor_data["name"] = vdu["id"][:56] + "-flv"
                     flavor_data["id"] = str(len(nsr_descriptor["flavor"]))
                     nsr_descriptor["flavor"].append(flavor_data)
@@ -434,7 +433,6 @@ class NsrTopic(BaseTopic):
                     img = next((f for f in nsr_descriptor["image"] if
                                 all(f.get(k) == image_data[k] for k in image_data)), None)
                     if not img:
-                        image_data["vim_info"] = []
                         image_data["id"] = str(len(nsr_descriptor["image"]))
                         nsr_descriptor["image"].append(image_data)