Fix to upgrade tool 51/5751/1
authorgcalvino <guillermo.calvinosanchez@altran.com>
Tue, 5 Dec 2017 07:54:52 +0000 (08:54 +0100)
committergcalvino <guillermo.calvinosanchez@altran.com>
Tue, 5 Dec 2017 07:54:52 +0000 (08:54 +0100)
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
descriptor-packages/tools/upgrade_descriptor_version.py

index c830e52..e07aaee 100755 (executable)
@@ -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: