From: Kefu Chai Date: Mon, 27 Apr 2020 05:11:56 +0000 (+0800) Subject: qa/tasks: s/itervalues/values/ to by py3 compatible X-Git-Tag: v14.2.10~17^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5737b1fb3f5f8f3d90668cdd476b6a949df03930;p=ceph.git qa/tasks: s/itervalues/values/ to by py3 compatible this change is not cherry-picked from master, as the changed files do not exist in master anymore. Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/ragweed.py b/qa/tasks/ragweed.py index 1368d0cb6f20..c5a6b3d0adb4 100644 --- a/qa/tasks/ragweed.py +++ b/qa/tasks/ragweed.py @@ -157,7 +157,7 @@ def create_users(ctx, config, run_stages): if not 'check' in run_stages[client]: # only remove user if went through the check stage continue - for user in users.itervalues(): + for user in users.values(): uid = '{user}.{client}'.format(user=user, client=client) ctx.cluster.only(client).run( args=[ diff --git a/qa/tasks/s3roundtrip.py b/qa/tasks/s3roundtrip.py index 97c0f71151cd..3a037214b63e 100644 --- a/qa/tasks/s3roundtrip.py +++ b/qa/tasks/s3roundtrip.py @@ -122,7 +122,7 @@ def create_users(ctx, config): yield finally: for client in config['clients']: - for user in users.itervalues(): + for user in users.values(): uid = '{user}.{client}'.format(user=user, client=client) ctx.cluster.only(client).run( args=[ diff --git a/qa/tasks/swift.py b/qa/tasks/swift.py index be19937bf274..f8758842369f 100644 --- a/qa/tasks/swift.py +++ b/qa/tasks/swift.py @@ -96,7 +96,7 @@ def create_users(ctx, config): yield finally: for client in config.keys(): - for user in users.itervalues(): + for user in users.values(): uid = '{user}.{client}'.format(user=user, client=client) cluster_name, daemon_type, client_id = teuthology.split_role(client) ctx.cluster.only(client).run(