]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
single cluster fix
authorShilpa Jagannath <smanjara@redhat.com>
Thu, 17 Jan 2019 14:43:29 +0000 (20:13 +0530)
committerShilpa Jagannath <smanjara@redhat.com>
Thu, 17 Jan 2019 14:43:29 +0000 (20:13 +0530)
teuthology/task/ceph_ansible.py

index fdda97c79dc0cedc2790826259805f2755a12407..15a01eaaf20db8a6ae859f270c6333ed9cae0812 100644 (file)
@@ -422,7 +422,7 @@ class CephAnsible(Task):
         if ctx.archive is not None and \
                 not (ctx.config.get('archive-on-error') and ctx.summary['success']):
             log.info('Archiving logs...')
-            path = os.path.join(ctx.archive, self.cluster_name, 'remote')
+            path = os.path.join(ctx.archive, self.cluster_name if self.cluster_name else 'ceph', 'remote')
             try:
                 os.makedirs(path)
             except OSError as e: