]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: allow none client prefixed node to run the cram
authorXiubo Li <xiubli@redhat.com>
Sat, 12 Dec 2020 01:30:31 +0000 (09:30 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 17 Dec 2020 12:38:48 +0000 (20:38 +0800)
Fixes: https://tracker.ceph.com/issues/47439
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cram.py

index 106e5f3262ff335fd1e6e9e9e5c2f915b98aafaa..85c1a61b9aaa8e376e561c3bfad62edb622337e7 100644 (file)
@@ -134,8 +134,10 @@ def _run_tests(ctx, role):
     """
     assert isinstance(role, str)
     PREFIX = 'client.'
-    assert role.startswith(PREFIX)
-    id_ = role[len(PREFIX):]
+    if role.startswith(PREFIX):
+        id_ = role[len(PREFIX):]
+    else:
+        id_ = role
     (remote,) = (ctx.cluster.only(role).remotes.keys())
     ceph_ref = ctx.summary.get('ceph-sha1', 'master')