From 65be917542006832afab692f323d0bbeeaeb03cd Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 6 Jan 2020 15:03:24 -0500 Subject: [PATCH] Make sure dhcp4_flag is boolean --- client-common/network.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client-common/network.py b/client-common/network.py index 6be4d7a5..2a9f6629 100644 --- a/client-common/network.py +++ b/client-common/network.py @@ -253,6 +253,10 @@ def add_network(zk_conn, vni, description, nettype, if not domain: domain = '{}.local'.format(description) + # Make sure the DHCP4 flag is always boolean + if dhcp4_flag is None: + dhcp4_flag = False + # Add the new network to Zookeeper zkhandler.writedata(zk_conn, { '/networks/{}'.format(vni): description,