From 37aeb227c346ee52d4fbed91c79cb59774ceb5ae Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 29 Aug 2018 21:26:09 +0200 Subject: dhcp_server.py: fix KeyError in verify() --- src/conf_mode/dhcp_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 3a095b618..8ca72164a 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -677,7 +677,7 @@ def verify(dhcp): if (len(subnet['range']) == 0): for mapping in subnet['static_mapping']: # we need at least one active mapping - if (not active_mapping) and (not mapping['disable']): + if (not active_mapping) and (not mapping['disabled']): active_mapping = True else: active_mapping = True -- cgit v1.2.3