Skip to content

Commit

Permalink
Sets submit_change_request to True for all EC2 jobs with
Browse files Browse the repository at this point in the history
`last_service` publish
  • Loading branch information
apozsuse committed Jun 21, 2024
1 parent f6f84c4 commit 552c300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mash/services/jobcreator/ec2_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 552c300

Please sign in to comment.