One of the two nested calls of os.path.join was redundant.

os.path.join can accept arbitrary number of path likes,
nesting the calls is therefore unnecessary.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I19010de832b2dd0b7f1b4940c9f770929d041053
This commit is contained in:
Jiri Podivin 2021-01-27 17:36:36 +01:00
parent 528c44b4e7
commit c29636eab5
1 changed files with 3 additions and 6 deletions

View File

@ -82,13 +82,10 @@ class Ansible(object):
temp_suffix='validations-libs-ansible'):
"""Creates ansible fact dir"""
ansible_fact_path = os.path.join(
os.path.join(
tempfile.gettempdir(),
temp_suffix
),
'fact_cache'
)
temp_suffix,
'fact_cache'
)
try:
os.makedirs(ansible_fact_path)
return ansible_fact_path