"src/git@developer.sourcefind.cn:jerrrrry/infinilm.git" did not exist on "726f444fd585e7f85e93dfdc1680983a6eda1f28"
Unverified Commit 0f7b057a authored by Yifan Xiong's avatar Yifan Xiong Committed by GitHub
Browse files

Runner - Fix sudo issue when running without Docker (#362)

Fix sudo issue when running without Docker, user account could be
arbitrary in such case.
parent 483bf782
......@@ -407,7 +407,7 @@ def _run_proc(self, benchmark_name, mode, vars):
ansible_runner_config['timeout'] = timeout
rc = self._ansible_client.run(ansible_runner_config, sudo=True)
rc = self._ansible_client.run(ansible_runner_config, sudo=(not self._docker_config.skip))
return rc
def run(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment