From f552eae2bf91b9b9d172bc52c7a6dd7f647f89f7 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 9 Dec 2015 17:07:43 -0500 Subject: [PATCH] Publish a url instead of a file path. Signed-off-by: Ralph Bean --- pungi/notifier.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pungi/notifier.py b/pungi/notifier.py index 5ab912f9..0e059fb8 100644 --- a/pungi/notifier.py +++ b/pungi/notifier.py @@ -16,6 +16,8 @@ import json import threading +import pungi.paths + from kobo import shortcuts @@ -33,7 +35,11 @@ class PungiNotifier(object): def _update_args(self, data): """Add compose related information to the data.""" data.setdefault('compose_id', self.compose.compose_id) - data.setdefault('topdir', self.compose.paths.compose.topdir()) + + # Publish where in the world this compose will end up living + location = pungi.paths.translate_path( + self.compose, self.compose.paths.compose.topdir()) + data.setdefault('location', location) def send(self, msg, **kwargs): """Send a message.