Skip to content

Commit

Permalink
MainWindow: fix mac address lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
cydanil committed Apr 3, 2020
1 parent 6846cfa commit ff38c22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipa_gui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def __init__(self, parent=None):
def list_devices(self):
self.lwDevices.clear()
devices = network.do_discovery()
self.devices = {mac: config for mac, config in
self.devices = {mac.upper(): config for mac, config in
sorted(devices.items(), key=lambda i: i[1].hostname)}

for device in self.devices.values():
line = (device.mac.upper() + ' '
for mac, device in self.devices.items():
line = (mac + ' '
+ device.ip.ljust(16) + ' '
+ device.hostname)
self.lwDevices.addItem(line)
Expand Down

0 comments on commit ff38c22

Please sign in to comment.