From 4a0806d23e92efe1ee9e641b211fee558a0a7eff Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 26 Dec 2019 19:08:26 -0500 Subject: [PATCH] Fix bug setting node limit of CSV --- client-common/vm.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/client-common/vm.py b/client-common/vm.py index 72488a8c..6fdcd5b9 100644 --- a/client-common/vm.py +++ b/client-common/vm.py @@ -222,15 +222,9 @@ def modify_vm_metadata(zk_conn, domain, node_limit, node_selector, node_autostar if node_limit is not None: - # Join the limit - if isinstance(node_limit, list): - zkhandler.writedata(zk_conn, { - '/domains/{}/node_limit'.format(dom_uuid): ','.join(node_limit) - }) - else: - zkhandler.writedata(zk_conn, { - '/domains/{}/node_limit'.format(dom_uuid): '' - }) + zkhandler.writedata(zk_conn, { + '/domains/{}/node_limit'.format(dom_uuid): node_limit + }) if node_selector is not None: zkhandler.writedata(zk_conn, {