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:
parent
528c44b4e7
commit
c29636eab5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue