We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45e1946 commit 63889a7Copy full SHA for 63889a7
1 file changed
n-m
@@ -193,7 +193,8 @@ def info(names):
193
print("Wireless link")
194
print(" MAC address:", conn['802-11-wireless'].get('mac-address', '(Automatic)'))
195
print(" SSID:", conn['802-11-wireless']['ssid'])
196
- print(" Wireless security:", conn[conn['802-11-wireless']['security']]['key-mgmt'])
+ if 'security' in conn['802-11-wireless']:
197
+ print(" Wireless security:", conn[conn['802-11-wireless']['security']]['key-mgmt'])
198
elif conn['connection']['type'] == 'vpn':
199
print("VPN")
200
print(" Type:", conn['vpn']['service-type'].rsplit('.',1)[-1])
0 commit comments