mirror of
https://github.com/svpcom/wfb-ng.git
synced 2025-02-22 16:23:47 -04:00
Fix python3 issue
This commit is contained in:
parent
23eaca1857
commit
c1775a66e5
@ -266,7 +266,8 @@ def init_wlans(profile, wlans):
|
||||
for wlan in wlans:
|
||||
if settings.common.set_nm_unmanaged:
|
||||
device_status = yield call_and_check_rc('nmcli', 'device', 'show', wlan, log_stdout=False)
|
||||
if not '(unmanaged)' in device_status:
|
||||
if not b'(unmanaged)' in device_status:
|
||||
log.msg('Switch %s to unmanaged state' % (wlan,))
|
||||
yield call_and_check_rc('nmcli', 'device', 'set', wlan, 'managed', 'no')
|
||||
yield df_sleep(1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user