Fix formatting of node_limit when writing

This commit is contained in:
Joshua Boniface 2019-12-12 21:36:21 -05:00
parent fff44ab44e
commit c91c9ae6d5
1 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ def define_vm(zk_conn, config_data, target_node, node_limit, node_selector, node
'/domains/{}/state'.format(dom_uuid): 'stop',
'/domains/{}/node'.format(dom_uuid): target_node,
'/domains/{}/lastnode'.format(dom_uuid): '',
'/domains/{}/node_limit'.format(dom_uuid): node_limit,
'/domains/{}/node_limit'.format(dom_uuid): ','.join(node_limit),
'/domains/{}/node_selector'.format(dom_uuid): node_selector,
'/domains/{}/node_autostart'.format(dom_uuid): node_autostart,
'/domains/{}/failedreason'.format(dom_uuid): '',
@ -210,7 +210,7 @@ def modify_vm_metadata(zk_conn, domain, node_limit, node_selector, node_autostar
if node_limit is not None:
zkhandler.writedata(zk_conn, {
'/domains/{}/node_limit'.format(dom_uuid): node_limit
'/domains/{}/node_limit'.format(dom_uuid): ','.join(node_limit)
})
if node_selector is not None: