Commit cf4ea53d by Calen Pennington

Small fixes to mongo metadata translations

parent 7aa97d29
...@@ -153,7 +153,8 @@ class CachingDescriptorSystem(MakoDescriptorSystem): ...@@ -153,7 +153,8 @@ class CachingDescriptorSystem(MakoDescriptorSystem):
) )
definition = json_data.get('definition', {}) definition = json_data.get('definition', {})
metadata = json_data.get('metadata', {}) metadata = json_data.get('metadata', {})
for old_name, new_name in class_.metadata_tranlations.items(): for old_name, new_name in class_.metadata_translations.items():
if old_name in metadata:
metadata[new_name] = metadata[old_name] metadata[new_name] = metadata[old_name]
del metadata[old_name] del metadata[old_name]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment