Skip to content

Commit d1044af

Browse files
committed
make syntastic happy
1 parent 22e9023 commit d1044af

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

netjsonconfig/backends/airos/converters.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from wpasupplicant import available_mode_authentication
88

9+
910
def status(config, key='disabled'):
1011
if config.get(key):
1112
return 'disabled'
@@ -46,7 +47,7 @@ def is_wpa2_personal(interface):
4647
return interface['encryption']['protocol'] == 'wpa2_personal'
4748

4849
try:
49-
return [ get_psk(i) for i in wireless if is_wpa2_personal(i)][0]
50+
return [get_psk(i) for i in wireless if is_wpa2_personal(i)][0]
5051
except IndexError:
5152
return {}
5253

@@ -268,7 +269,7 @@ def to_intermediate(self):
268269
}
269270

270271
# handle interface type quirks
271-
if interface['type'] == 'ethernet' and not '.' in interface['name']:
272+
if interface['type'] == 'ethernet' and '.' not in interface['name']:
272273
base['autoneg'] = 'enabled'
273274
base['flowcontrol'] = {
274275
'rx': {
@@ -424,7 +425,7 @@ def nameserver(self):
424425
'status': 'enabled',
425426
})
426427

427-
return { 'nameserver': t }
428+
return {'nameserver': t}
428429

429430
def to_intermediate(self):
430431
result = []

0 commit comments

Comments
 (0)