Fixing role id serialization 70/7570/1
authorEduardo Sousa <eduardo.sousa@canonical.com>
Wed, 29 May 2019 10:09:16 +0000 (11:09 +0100)
committerEduardo Sousa <eduardo.sousa@canonical.com>
Wed, 29 May 2019 10:09:16 +0000 (11:09 +0100)
Change-Id: I419523f238d17b90dfebfffdbe12eec19968255d
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
osm_nbi/admin_topics.py

index a737301..924ebdd 100644 (file)
@@ -907,6 +907,8 @@ class RoleTopicAuth(BaseTopic):
         """
         content_keys = list(content.keys())
 
+        content["_id"] = str(content["_id"])
+
         for key in content_keys:
             if ":" in key:
                 content[key.replace(":", ".")] = content[key]