]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: use shortname for remote directory
authorSage Weil <sage@newdream.net>
Fri, 12 Nov 2021 20:52:46 +0000 (14:52 -0600)
committerSage Weil <sage@newdream.net>
Thu, 25 Nov 2021 13:52:56 +0000 (07:52 -0600)
This aligns with what the ceph and syslog tasks do.

Signed-off-by: Sage Weil <sage@newdream.net>
qa/tasks/cephadm.py

index d6dd58abba7330f7da2ccfbfb29aa2399918fd79..6331793985a0b1e8e5244b600e1c7821a18da9d5 100644 (file)
@@ -296,7 +296,7 @@ def ceph_log(ctx, config):
             except OSError:
                 pass
             for remote in ctx.cluster.remotes.keys():
-                sub = os.path.join(path, remote.name)
+                sub = os.path.join(path, remote.shortname)
                 try:
                     os.makedirs(sub)
                 except OSError:
@@ -330,7 +330,7 @@ def ceph_crash(ctx, config):
             except OSError:
                 pass
             for remote in ctx.cluster.remotes.keys():
-                sub = os.path.join(path, remote.name)
+                sub = os.path.join(path, remote.shortname)
                 try:
                     os.makedirs(sub)
                 except OSError: