Browse Source

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
changes/41/772741/1
Jiri Podivin 1 year ago
parent
commit
c29636eab5
  1. 9
      validations_libs/ansible.py

9
validations_libs/ansible.py

@ -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

Loading…
Cancel
Save