From: gcalvino Date: Tue, 5 Dec 2017 07:54:52 +0000 (+0100) Subject: Fix to upgrade tool X-Git-Tag: v3.0.3~22 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=77d0ffcae8d7ec15d1fbb190dc3f4a0c74c8b660;p=osm%2Fdevops.git Fix to upgrade tool Signed-off-by: gcalvino --- diff --git a/descriptor-packages/tools/upgrade_descriptor_version.py b/descriptor-packages/tools/upgrade_descriptor_version.py index c830e521..e07aaeea 100755 --- a/descriptor-packages/tools/upgrade_descriptor_version.py +++ b/descriptor-packages/tools/upgrade_descriptor_version.py @@ -205,7 +205,8 @@ if __name__=="__main__": internal_interface.pop("vdu-internal-connection-point-ref") interface_list.append(internal_interface) error_position.pop() - + if interface_list: + vdu["interface"] = interface_list error_position.pop() error_position = [] elif "nsd:nsd-catalog" in data or "nsd-catalog" in data: