We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7a7069 commit aee3953Copy full SHA for aee3953
netjsonconfig/backends/airos/airos.py
@@ -60,14 +60,14 @@ def to_intermediate(self):
60
self.intermediate_data[k] = [x for x in flatten(intermediate_to_list(v)) if x != {}]
61
62
63
-def flatten(xs):
+def flatten(elements):
64
"""
65
Flatten a list
66
67
- if xs is not list:
68
- return xs
+ if elements is not list:
+ return elements
69
else:
70
- return reduce(lambda x, y: x + flatten(y), xs, [])
+ return reduce(lambda x, y: x + flatten(y), elements, [])
71
72
73
def intermediate_to_list(configuration):
0 commit comments