Merge "Fix config parser warning"

This commit is contained in:
Zuul 2020-08-22 08:15:25 +00:00 committed by Gerrit Code Review
commit db1ed29ea9
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def write_default_ansible_cfg(work_dir,
sio_cfg = StringIO() sio_cfg = StringIO()
sio_cfg.write(override_ansible_cfg) sio_cfg.write(override_ansible_cfg)
sio_cfg.seek(0) sio_cfg.seek(0)
config.readfp(sio_cfg) config.read_file(sio_cfg)
sio_cfg.close() sio_cfg.close()
with open(ansible_config_path, 'w') as configfile: with open(ansible_config_path, 'w') as configfile: