Merge "Removed unnecessary second check."

This commit is contained in:
Zuul 2021-02-24 13:39:06 +00:00 committed by Gerrit Code Review
commit c21673ae16

View File

@ -401,8 +401,6 @@ class Ansible(object):
ansible_timeout, callback_whitelist,
base_dir, python_interpreter))
if not ansible_artifact_path:
ansible_artifact_path = constants.VALIDATION_ANSIBLE_ARTIFACT_PATH
if 'ANSIBLE_CONFIG' not in env and not ansible_cfg:
ansible_cfg = os.path.join(ansible_artifact_path, 'ansible.cfg')
config = configparser.ConfigParser()