From ef41ee8591f6ce9fa55b06b2e02d8b060eae6c02 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Mon, 18 Mar 2019 19:01:47 +0100 Subject: [PATCH] Skip post install for windows VM creation Windows VM creation doesn't support post install yet - the job that creates the VM returns before the installation is done - the post install template is Linux only right now JIRA INFRA-877 --- app/tasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/tasks.py b/app/tasks.py index 9a0cb51..6bef637 100644 --- a/app/tasks.py +++ b/app/tasks.py @@ -114,7 +114,11 @@ def trigger_vm_creation( extra_vars=extra_vars, timeout=500, ) - if post_job_template and not skip_post_install_job: + if ( + post_job_template + and (not skip_post_install_job) + and (not vm_osversion.startswith("windows")) + ): current_user.launch_task( "trigger_post_install_job", resource="job", -- GitLab