summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2018-04-24 01:58:10 +0000
committerJack Chan <chenjiankun1@huawei.com>2018-04-26 02:05:19 +0000
commitbd2064d2862e2a50566394eba9ce15a0d1d8db40 (patch)
treefda63eae318d1efe7d638ae880a5f1b472f3be05
parent5a18f5420f9077557d9f50ebe420b66813ebee49 (diff)
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 <chenjiankun1@huawei.com> (cherry picked from commit 170842f20426ad244f3e49b3780b0256302b0be3)
-rw-r--r--yardstick/common/ansible_common.py2
1 files changed, 1 insertions, 1 deletions
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)