From: tierno Date: Tue, 20 Nov 2018 15:55:00 +0000 (+0000) Subject: fixing issue in validate_descriptor X-Git-Tag: v5.0.0~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c2e2371ad078ea5cc3ecd76ab7d1f95f65fe1223;p=osm%2Fdevops.git fixing issue in validate_descriptor Change-Id: I3d87c21f2beba29784d1f30fb4e0249c06bf3af0 Signed-off-by: tierno --- 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(