Skip to content

Commit

Permalink
Merge pull request #58 from RedHatQE/fix-flat
Browse files Browse the repository at this point in the history
Fix the flat dictionary fill to not follow values
  • Loading branch information
Milan Falešník committed Aug 24, 2017
2 parents 1a9a0c0 + 9b8874c commit 1f8fcb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgetastic/utils.py
Expand Up @@ -503,7 +503,7 @@ def deflatten_dict(d):
{'a': {'b': 1}}
The conversion recursively follows dictionaries as values.
The conversion does not recusively follow dictionaries as values.
Args:
d: Dictionary
Expand All @@ -527,7 +527,7 @@ def deflatten_dict(d):
if attr_name not in local_dict:
local_dict[attr_name] = {}
local_dict = local_dict[attr_name]
local_dict[attr_set] = deflatten_dict(value) if isinstance(value, dict) else value
local_dict[attr_set] = value
return current_dict


Expand Down

0 comments on commit 1f8fcb9

Please sign in to comment.