From 71bf0dd793724051d36da72398f6699f4ac1afed Mon Sep 17 00:00:00 2001 From: garciaale Date: Tue, 2 Mar 2021 10:49:28 -0300 Subject: [PATCH] Fixes 1440 with proper iteration of dict Change-Id: If1cdf143aaebb8c5246a8cae6cc6aff239ab0637 Signed-off-by: garciaale (cherry picked from commit 04694c678958696bbdb0a09b43e679b2548acf0e) --- osm_lcm/ns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1