Fix bug setting node limit of CSV
This commit is contained in:
parent
1d4e4d178c
commit
4a0806d23e
|
@ -222,15 +222,9 @@ def modify_vm_metadata(zk_conn, domain, node_limit, node_selector, node_autostar
|
||||||
|
|
||||||
|
|
||||||
if node_limit is not None:
|
if node_limit is not None:
|
||||||
# Join the limit
|
zkhandler.writedata(zk_conn, {
|
||||||
if isinstance(node_limit, list):
|
'/domains/{}/node_limit'.format(dom_uuid): node_limit
|
||||||
zkhandler.writedata(zk_conn, {
|
})
|
||||||
'/domains/{}/node_limit'.format(dom_uuid): ','.join(node_limit)
|
|
||||||
})
|
|
||||||
else:
|
|
||||||
zkhandler.writedata(zk_conn, {
|
|
||||||
'/domains/{}/node_limit'.format(dom_uuid): ''
|
|
||||||
})
|
|
||||||
|
|
||||||
if node_selector is not None:
|
if node_selector is not None:
|
||||||
zkhandler.writedata(zk_conn, {
|
zkhandler.writedata(zk_conn, {
|
||||||
|
|
Loading…
Reference in New Issue