Skip to content

Commit 5f8e7be

Browse files
committed
[airos] fixed indentation in list comprehension
1 parent 17b90db commit 5f8e7be

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

netjsonconfig/backends/airos/converters.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@ class Vlan(AirOsConverter):
607607
def to_intermediate(self):
608608
result = []
609609
original = [
610-
i for i in get_copy(self.netjson, self.netjson_key, []) if '.' in i['name']
611-
]
610+
i for i in get_copy(self.netjson, self.netjson_key, []) if '.' in i['name']
611+
]
612612

613613
vlans = []
614614
for v in original:
@@ -631,8 +631,8 @@ class Wireless(AirOsConverter):
631631
def to_intermediate(self):
632632
result = []
633633
original = [
634-
i for i in get_copy(self.netjson, self.netjson_key, []) if i['type'] == 'wireless'
635-
]
634+
i for i in get_copy(self.netjson, self.netjson_key, []) if i['type'] == 'wireless'
635+
]
636636

637637
ws = []
638638
for w in original:
@@ -767,14 +767,11 @@ def secondary_network(self):
767767

768768
def to_intermediate(self):
769769
original = [
770-
i for i in get_copy(self.netjson, self.netjson_key, []) if i['type'] == 'wireless'
771-
]
770+
i for i in get_copy(self.netjson, self.netjson_key, []) if i['type'] == 'wireless'
771+
]
772772

773773
if original:
774774
head = original[0]
775775
# call either ``_station_intermediate`` or ``_access_point_intermediate``
776776
# and return the result
777777
return getattr(self, '_%s_intermediate' % head['wireless']['mode'])(original)
778-
779-
780-
__all__ = []

0 commit comments

Comments
 (0)