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

This commit is contained in:
Zuul 2021-02-16 22:32:05 +00:00 committed by Gerrit Code Review
commit ee8e9ec7d9
1 changed files with 3 additions and 6 deletions

View File

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