From 190623bdd91cbbfccaa0a618564d67d125e11b54 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 22 Oct 2019 12:32:14 -0400 Subject: [PATCH] Use empty string for node limit --- node-daemon/pvcd/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node-daemon/pvcd/common.py b/node-daemon/pvcd/common.py index f714b73c..8a54d147 100644 --- a/node-daemon/pvcd/common.py +++ b/node-daemon/pvcd/common.py @@ -144,10 +144,10 @@ def findTargetNode(zk_conn, config, dom_uuid): try: node_limit = zkhandler.readdata(zk_conn, '/domains/{}/node_limit'.format(dom_uuid)).split(',') if not any(node_limit): - node_limit = None + node_limit = '' except: - node_limit = None - zkhandler.writedata(zk_conn, { '/domains/{}/node_limit'.format(dom_uuid): 'None' }) + node_limit = '' + zkhandler.writedata(zk_conn, { '/domains/{}/node_limit'.format(dom_uuid): '' }) # Determine VM search field or use default; set config value if read fails try: