From 5e2efacda5f59e8239e43149c1e507d45778c0fc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 5 Jan 2020 23:22:23 -0500 Subject: [PATCH] Strip VM schema when defining --- client-api/api_lib/pvcapi_provisioner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-api/api_lib/pvcapi_provisioner.py b/client-api/api_lib/pvcapi_provisioner.py index b3bb67af..994b23e4 100755 --- a/client-api/api_lib/pvcapi_provisioner.py +++ b/client-api/api_lib/pvcapi_provisioner.py @@ -1305,7 +1305,7 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True): node_limit = node_limit.split(',') node_selector = vm_data['system_details']['node_selector'] 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) if start_vm: