From bd2064d2862e2a50566394eba9ce15a0d1d8db40 Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Tue, 24 Apr 2018 01:58:10 +0000 Subject: Bugfix: ansible can't not run without config JIRA: YARDSTICK-1135 Ansible need ansible.cfg when run in the remote node. However the file name is wrong. Need: setup.cfg -> ansible.cfg Change-Id: Ifa674fb624ca83d90c3ac9ad3bfe148013bf8bfd Signed-off-by: chenjiankun (cherry picked from commit 170842f20426ad244f3e49b3780b0256302b0be3) --- yardstick/common/ansible_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yardstick/common/ansible_common.py b/yardstick/common/ansible_common.py index 38d2dd7c2..ca5a110e2 100644 --- a/yardstick/common/ansible_common.py +++ b/yardstick/common/ansible_common.py @@ -514,7 +514,7 @@ class AnsibleCommon(object): parser.add_section('defaults') parser.set('defaults', 'host_key_checking', 'False') - cfg_path = os.path.join(directory, 'setup.cfg') + cfg_path = os.path.join(directory, 'ansible.cfg') with open(cfg_path, 'w') as f: parser.write(f) -- cgit 1.2.3-korg