From: Eduardo Sousa Date: Wed, 29 May 2019 10:03:57 +0000 (+0100) Subject: Fixing iteration for role content X-Git-Tag: v6.0.0~31 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=568ca902d046e5906bfe2fe6e82a2b6f1838c14b;p=osm%2FNBI.git Fixing iteration for role content Change-Id: I9a72bd0eba2e08441fadfcca9180be07a17653ad Signed-off-by: Eduardo Sousa --- 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