bundles/dhcpd: adjust spacing in metadata processor for static leases
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-11-15 12:07:02 +01:00
parent d5bca495e0
commit c597244a9d
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -14,9 +14,10 @@ def get_static_allocations(metadata):
for identifier, interface in rnode.metadata.get('interfaces', {}).items(): for identifier, interface in rnode.metadata.get('interfaces', {}).items():
if interface.get('dhcp', False): if interface.get('dhcp', False):
allocations[rnode.name] = { allocations[rnode.name] = {
'ipv4': sorted(interface['ips'])[0], 'ipv4': sorted(interface['ips'])[0],
'mac': interface['mac'], 'mac': interface['mac'],
} }
return { return {
'dhcpd': { 'dhcpd': {
'fixed_allocations': allocations, 'fixed_allocations': allocations,