From d8b23ad1d6ca38cadf543c869ffea7b6afc4c18a Mon Sep 17 00:00:00 2001
From: Joshua Hesketh <josh@nitrotech.org>
Date: Mon, 16 Dec 2013 11:51:50 +1100
Subject: [PATCH] Return the swift object name for the log url

Change-Id: I43bdbd8d8f05c26de4f9961646ec672095befea3
---
 turbo_hipster/lib/utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/turbo_hipster/lib/utils.py b/turbo_hipster/lib/utils.py
index f9da679..0555ca7 100644
--- a/turbo_hipster/lib/utils.py
+++ b/turbo_hipster/lib/utils.py
@@ -204,8 +204,8 @@ def swift_push_file(job_log_dir, file_path, swift_config):
             os_options={'region_name': swift_config['region']},
             tenant_name=swift_config['tenant'],
             auth_version=2.0)
-        obj = con.put_object(swift_config['container'], name, fd)
-        return obj
+        con.put_object(swift_config['container'], name, fd)
+        return swift_config['prepend_url'] + name
 
 
 def local_push_file(job_log_dir, file_path, local_config):