Removed unnecessary second check.

The condition checking existence ansible_artifact_path was redundant.
Similar, but more comprehensive, check is performed previously in the method,
along with missing path resolution.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Icf5de856ddbc877dfdd19354b102197fefe40eec
This commit is contained in:
Jiri Podivin 2021-01-19 16:55:21 +01:00
parent a0db6e4892
commit 9dd1fcaff5
1 changed files with 0 additions and 2 deletions

View File

@ -404,8 +404,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()