diff --git a/bundles/dhcpd/metadata.py b/bundles/dhcpd/metadata.py index fc8cad3..6a8d555 100644 --- a/bundles/dhcpd/metadata.py +++ b/bundles/dhcpd/metadata.py @@ -18,10 +18,13 @@ 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'], - } + try: + allocations[rnode.name] = { + 'ipv4': sorted(interface['ips'])[0], + 'mac': interface['mac'], + } + except KeyError: + pass return { 'dhcpd': {