]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Be less picky about trailing slashes. 92/head
authorZack Cerza <zack@cerza.org>
Mon, 16 Sep 2013 16:37:39 +0000 (11:37 -0500)
committerZack Cerza <zack@cerza.org>
Mon, 16 Sep 2013 17:35:30 +0000 (12:35 -0500)
teuthology/misc.py

index f5a4e44c264aec8ebd509797a489d8a2fd07c87c..6a75ae5ca9f4d9437ac3a63b067a54d10ee653d0 100644 (file)
@@ -55,12 +55,11 @@ def get_http_log_path(archive_dir, job_id=None):
         return None
 
     sep = os.path.sep
+    archive_dir = archive_dir.rstrip(sep)
     archive_subdir = archive_dir.split(sep)[-1]
     if archive_subdir.endswith(str(job_id)):
         archive_subdir = archive_dir.split(sep)[-2]
 
-    print archive_subdir
-
     if job_id is None:
         return os.path.join(http_base, archive_subdir, '')
     return os.path.join(http_base, archive_subdir, str(job_id), '')