From 77d0ffcae8d7ec15d1fbb190dc3f4a0c74c8b660 Mon Sep 17 00:00:00 2001 From: gcalvino Date: Tue, 5 Dec 2017 08:54:52 +0100 Subject: [PATCH] Fix to upgrade tool Signed-off-by: gcalvino --- descriptor-packages/tools/upgrade_descriptor_version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.25.1