From: garciaale Date: Tue, 2 Mar 2021 13:49:28 +0000 (-0300) Subject: Fixes 1440 with proper iteration of dict X-Git-Tag: branch-sol006v331-start~10 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F10425%2F1;p=osm%2FLCM.git Fixes 1440 with proper iteration of dict Change-Id: If1cdf143aaebb8c5246a8cae6cc6aff239ab0637 Signed-off-by: garciaale --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 75db8e5..a006f8e 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -595,7 +595,7 @@ class NsLcm(LcmBase): for param in ("vim-network-name", "vim-network-id"): if vld_params.get(param): if isinstance(vld_params[param], dict): - for vim, vim_net in vld_params[param]: + for vim, vim_net in vld_params[param].items(): other_target_vim = "vim:" + vim populate_dict(target_vld["vim_info"], (other_target_vim, param.replace("-", "_")), vim_net) else: # isinstance str