bundles/dhcpd: adjust spacing in metadata processor for static leases
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
d5bca495e0
commit
c597244a9d
1 changed files with 3 additions and 2 deletions
|
@ -14,9 +14,10 @@ def get_static_allocations(metadata):
|
|||
for identifier, interface in rnode.metadata.get('interfaces', {}).items():
|
||||
if interface.get('dhcp', False):
|
||||
allocations[rnode.name] = {
|
||||
'ipv4': sorted(interface['ips'])[0],
|
||||
'mac': interface['mac'],
|
||||
'ipv4': sorted(interface['ips'])[0],
|
||||
'mac': interface['mac'],
|
||||
}
|
||||
|
||||
return {
|
||||
'dhcpd': {
|
||||
'fixed_allocations': allocations,
|
||||
|
|
Loading…
Reference in a new issue