From 552c300e06d054cda3b4c43475d3583ea633a244 Mon Sep 17 00:00:00 2001 From: Andres Pozo Date: Fri, 21 Jun 2024 14:56:24 +0200 Subject: [PATCH] Sets `submit_change_request` to True for all EC2 jobs with `last_service` publish --- mash/services/jobcreator/ec2_job.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mash/services/jobcreator/ec2_job.py b/mash/services/jobcreator/ec2_job.py index 9670e7b8..6b688e8d 100644 --- a/mash/services/jobcreator/ec2_job.py +++ b/mash/services/jobcreator/ec2_job.py @@ -132,7 +132,9 @@ def get_publish_message(self): if self.ssh_user: publish_message['publish_job']['ssh_user'] = self.ssh_user - if not self.old_cloud_image_name: + if ( + not self.old_cloud_image_name or self.last_service == 'publish' + ): publish_message['publish_job']['submit_change_request'] = True else: publish_message = {