alfred: use network.mac as ID if present
This commit is contained in:
parent
b3a921347c
commit
26fc2a9aef
|
@ -23,6 +23,11 @@ class alfred:
|
|||
except KeyError:
|
||||
pass
|
||||
|
||||
try:
|
||||
node_alias['id'] = node['network']['mac']
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if 'hostname' in node:
|
||||
node_alias['name'] = node['hostname']
|
||||
elif 'name' in node:
|
||||
|
|
Loading…
Reference in a new issue