From fbb4293091af69f5ec0978b938d22881d610c6dc Mon Sep 17 00:00:00 2001 From: Robert Bruce Park Date: Tue, 19 Jan 2016 12:05:32 -0800 Subject: [PATCH] Stop setting artifacts link if log is running.shtml. --- britney.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 84c056f..03eef02 100755 --- a/britney.py +++ b/britney.py @@ -1965,7 +1965,8 @@ class Britney(object): for arch, (status, log_url) in arch_status.items(): kwargs = {} if self.options.adt_ppas: - kwargs['artifact_url'] = log_url.replace('log.gz', 'artifacts.tar.gz') + if log_url.endswith('log.gz'): + kwargs['artifact_url'] = log_url.replace('log.gz', 'artifacts.tar.gz') else: kwargs['history_url'] = cloud_url % { 'h': srchash(adtsrc), 's': adtsrc,