Skip to content

Commit e7386af

Browse files
committed
[airos] fixed name conflict in wpasupplicant converter
1 parent a5ad225 commit e7386af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netjsonconfig/backends/airos/converters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -718,13 +718,13 @@ def _access_point_intermediate(self, original):
718718

719719
if original:
720720
head = original[0]
721-
protocol = head['wireless']['encryption']['protocol']
722-
status = wpasupplicant_status[protocol]
721+
proto = protocol(head)
722+
status = wpasupplicant_status[proto]
723723
result.append({
724724
'status': status
725725
})
726726
temp_dev['status'] = status
727-
network = ap_auth_protocols[protocol](head)
727+
network = ap_auth_protocols[proto](head)
728728

729729
result.append({
730730
'device': [temp_dev],

0 commit comments

Comments
 (0)