From: Xiubo Li Date: Sat, 12 Dec 2020 01:30:31 +0000 (+0800) Subject: qa/tasks: allow none client prefixed node to run the cram X-Git-Tag: v17.0.0~259^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8b0ebe1240809de9b2fc2beb72551604fe359c39;p=ceph-ci.git qa/tasks: allow none client prefixed node to run the cram Fixes: https://tracker.ceph.com/issues/47439 Signed-off-by: Xiubo Li --- diff --git a/qa/tasks/cram.py b/qa/tasks/cram.py index 106e5f3262f..85c1a61b9aa 100644 --- a/qa/tasks/cram.py +++ b/qa/tasks/cram.py @@ -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')