Skip to content

Commit 05be8bd

Browse files
committed
[airos] fixed bugs with child_value being used as child_key
1 parent 3b1d789 commit 05be8bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

netjsonconfig/backends/airos/airos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def intermediate_to_list(configuration):
152152
# enclose it in a flattened list
153153
for child in intermediate_to_list(flatten([value])):
154154
for child_key, child_value in child.items():
155-
nested_key = '{key}.{subkey}'.format(key=child_key, subkey=child_value)
155+
nested_key = '{key}.{subkey}'.format(key=key, subkey=child_key)
156156
temp[nested_key] = child_value
157157

158158
# now it is atomic, append it to

0 commit comments

Comments
 (0)