Return the swift object name for the log url

Change-Id: I43bdbd8d8f05c26de4f9961646ec672095befea3
This commit is contained in:
Joshua Hesketh 2013-12-16 11:51:50 +11:00
parent a497d3a48f
commit d8b23ad1d6

View File

@ -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):