From 568ca902d046e5906bfe2fe6e82a2b6f1838c14b Mon Sep 17 00:00:00 2001 From: Eduardo Sousa Date: Wed, 29 May 2019 11:03:57 +0100 Subject: [PATCH] Fixing iteration for role content Change-Id: I9a72bd0eba2e08441fadfcca9180be07a17653ad Signed-off-by: Eduardo Sousa --- osm_nbi/admin_topics.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osm_nbi/admin_topics.py b/osm_nbi/admin_topics.py index d6112e1..a737301 100644 --- a/osm_nbi/admin_topics.py +++ b/osm_nbi/admin_topics.py @@ -865,10 +865,11 @@ class RoleTopicAuth(BaseTopic): content[":"] = False ignore_fields = ["_id", "_admin", "name"] - for role_def, value in content.items(): + content_keys = content.keys() + for role_def in content_keys: if role_def in ignore_fields: continue - content[role_def.replace(".", ":")] = value + content[role_def.replace(".", ":")] = content[role_def] del content[role_def] @staticmethod -- 2.25.1