mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
8224627036
commit
9bf39e7875
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class VMwareInventory(object):
|
||||||
else:
|
else:
|
||||||
cache_max_age = 0
|
cache_max_age = 0
|
||||||
cache_stat = os.stat(cache_file)
|
cache_stat = os.stat(cache_file)
|
||||||
if (cache_stat.st_mtime + cache_max_age) < time.time():
|
if (cache_stat.st_mtime + cache_max_age) >= time.time():
|
||||||
with open(cache_file) as cache:
|
with open(cache_file) as cache:
|
||||||
return json.load(cache)
|
return json.load(cache)
|
||||||
return default
|
return default
|
||||||
|
|
Loading…
Reference in a new issue