From f280c93c82fc0b47463e4339959aa4433b083791 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 8 Jan 2020 19:59:01 -0500 Subject: [PATCH] Add create/start VM flags to API endpoint --- client-api/pvc-api.py | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index 83b35724..c0fed28d 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -172,8 +172,8 @@ def Authenticator(function): # Job functions # @celery.task(bind=True) -def create_vm(self, vm_name, profile_name): - return api_provisioner.create_vm(self, vm_name, profile_name) +def create_vm(self, vm_name, profile_name, define_vm=True, start_vm=True): + return api_provisioner.create_vm(self, vm_name, profile_name, define_vm=define_vm, start_vm=start_vm) ########################################################## @@ -5336,7 +5336,9 @@ api.add_resource(API_Provisioner_Profile_Element, '/provisioner/profile/