diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2018-04-24 01:58:10 +0000 |
---|---|---|
committer | chenjiankun <chenjiankun1@huawei.com> | 2018-04-24 01:58:10 +0000 |
commit | 170842f20426ad244f3e49b3780b0256302b0be3 (patch) | |
tree | b61c64a6d6f6b4db1dcba477e1ec858e9b04cd72 | |
parent | 7e2c35c4c33563d2007398f19f924cef9055ef4d (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>
-rw-r--r-- | yardstick/common/ansible_common.py | 2 |
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) |