From ba4aff144eba44e2e163429b2195a841990ec4cf Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Mon, 20 Jul 2020 12:33:01 +0200 Subject: [PATCH] qa/tasks/autotest: use remote.write_file Signed-off-by: Kyr Shatskyy --- qa/tasks/autotest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qa/tasks/autotest.py b/qa/tasks/autotest.py index 297c1a4cbb7..80c3fc9d219 100644 --- a/qa/tasks/autotest.py +++ b/qa/tasks/autotest.py @@ -120,8 +120,7 @@ def _run_tests(testdir, remote, role, tests): id=id_, ) control = '{tdir}/control.{tag}'.format(tdir=testdir, tag=tag) - teuthology.write_file( - remote=remote, + remote.write_file( path=control, data='import json; data=json.loads({data!r}); job.run_test(**data)'.format( data=json.dumps(dict(