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: v16.1.0~227^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b0ebe1240809de9b2fc2beb72551604fe359c39;p=ceph.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 106e5f3262ff..85c1a61b9aaa 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')