From c2e2371ad078ea5cc3ecd76ab7d1f95f65fe1223 Mon Sep 17 00:00:00 2001 From: tierno Date: Tue, 20 Nov 2018 15:55:00 +0000 Subject: [PATCH] fixing issue in validate_descriptor Change-Id: I3d87c21f2beba29784d1f30fb4e0249c06bf3af0 Signed-off-by: tierno --- descriptor-packages/tools/validate_descriptor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/descriptor-packages/tools/validate_descriptor.py b/descriptor-packages/tools/validate_descriptor.py index 4d5f0e1f..40fcb238 100755 --- a/descriptor-packages/tools/validate_descriptor.py +++ b/descriptor-packages/tools/validate_descriptor.py @@ -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( -- 2.25.1