From b34e1d0038c327a56eb8dddbb08f93457dd64b1b Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Jul 08 2016 08:20:29 +0000 Subject: Change the AutocloudPlugin to listen to the new package changes --- diff --git a/bugyou_plugins/plugins/autocloud/plugin.py b/bugyou_plugins/plugins/autocloud/plugin.py index f4eea77..0a6fefe 100644 --- a/bugyou_plugins/plugins/autocloud/plugin.py +++ b/bugyou_plugins/plugins/autocloud/plugin.py @@ -43,7 +43,7 @@ class AutocloudPlugin(BasePlugin): pagure_obj = PagureService(plugin_name=self.plugin_name) issue_content_templ = """ - The image {image_name} for the release - {release} failed. + The image {image_name}({compose_id}) for the release - {release} failed. The output can be seen here - {output_url} """ @@ -58,6 +58,7 @@ class AutocloudPlugin(BasePlugin): image_name = msg_info['image_name'] release = msg_info['release'] job_id = msg_info['job_id'] + compose_id = msg_info['compose_id'] lookup_key = lookup_key_tmpl.format(image_name=image_name, release=release) @@ -67,8 +68,9 @@ class AutocloudPlugin(BasePlugin): if 'failed' in topic: output_url = output_url_tmpl.format(job_id=job_id) content = issue_content_templ.format(image_name=image_name, - release=release, - output_url=output_url) + compose_id=compose_id, + release=release, + output_url=output_url) if lookup_key_exists: matched_issue = (issue for issue in issues diff --git a/initsys/bugyou-cntrl.service b/initsys/bugyou-cntrl.service index 5a9d5ce..6e1a26a 100644 --- a/initsys/bugyou-cntrl.service +++ b/initsys/bugyou-cntrl.service @@ -7,7 +7,7 @@ Documentation=http://bugyou.readthedocs.org/ [Service] ExecStart=/usr/bin/bugyou-cntrl Type=simple -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target