]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Passing job_id to get_http_log_path() is optional
authorZack Cerza <zack@cerza.org>
Wed, 11 Sep 2013 18:47:49 +0000 (13:47 -0500)
committerZack Cerza <zack@cerza.org>
Wed, 11 Sep 2013 18:47:49 +0000 (13:47 -0500)
teuthology/misc.py

index 7725e9efc3e486d5090f3c6becb8390daddd11d1..0d154b5fadc319ea2dd043cb67d3b32f4d673e68 100644 (file)
@@ -49,11 +49,13 @@ def get_archive_dir(ctx):
     return os.path.normpath(os.path.join(test_dir, 'archive'))
 
 
-def get_http_log_path(archive_dir, job_id):
+def get_http_log_path(archive_dir, job_id=None):
     http_base = config.archive_server
     if not http_base:
         return None
     archive_subdir = os.path.split(archive_dir)[-1]
+    if job_id is None:
+        return os.path.join(http_base, archive_subdir, '')
     return os.path.join(http_base, archive_subdir, str(job_id), '')