fixing issue in validate_descriptor 28/6928/3
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 20 Nov 2018 15:55:00 +0000 (15:55 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 30 Nov 2018 12:53:04 +0000 (14:53 +0200)
Change-Id: I3d87c21f2beba29784d1f30fb4e0249c06bf3af0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
descriptor-packages/tools/validate_descriptor.py

index 4d5f0e1..40fcb23 100755 (executable)
@@ -127,7 +127,7 @@ if __name__=="__main__":
                         if external_interface.get("virtual-interface", {}).get("type") == "OM-MGMT":
                             raise KeyError(
                                 "Wrong 'Virtual-interface type': Deprecated 'OM-MGMT' value. Please, use 'PARAVIRT' instead")
-                    interface_list = vdu.pop("interface", ())
+                    interface_list = vdu.get("interface", ())
                     for interface in interface_list:
                         if interface.get("virtual-interface", {}).get("type") == "OM-MGMT":
                             raise KeyError(