Strip VM schema when defining

This commit is contained in:
Joshua Boniface 2020-01-05 23:22:23 -05:00
parent 3719d850c7
commit 5e2efacda5
1 changed files with 1 additions and 1 deletions

View File

@ -1305,7 +1305,7 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True):
node_limit = node_limit.split(',') node_limit = node_limit.split(',')
node_selector = vm_data['system_details']['node_selector'] node_selector = vm_data['system_details']['node_selector']
node_autostart = vm_data['system_details']['node_autostart'] node_autostart = vm_data['system_details']['node_autostart']
retcode, retmsg = pvc_vm.define_vm(zk_conn, vm_schema, target_node, node_limit, node_selector, node_autostart, vm_profile) retcode, retmsg = pvc_vm.define_vm(zk_conn, vm_schema.strip(), target_node, node_limit, node_selector, node_autostart, vm_profile)
print(retmsg) print(retmsg)
if start_vm: if start_vm: