summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-07-07 08:51:39 -0400
committerBrian Coca <brian.coca+git@gmail.com>2015-07-07 08:56:00 -0400
commitdef94da14a64080645c0ca9fc67686a20c7b5ed8 (patch)
tree5b3d5dfb8484528e7c41a8b4f1cd708286cf3efc
parent8b3875f2866c73525e448dcea97ebd329edf4cf9 (diff)
downloadansible-def94da14a64080645c0ca9fc67686a20c7b5ed8.tar.gz
reversed cache check condition to actually work
fixes #11505
-rwxr-xr-xplugins/inventory/vmware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/inventory/vmware.py b/plugins/inventory/vmware.py
index 92030d66e5..eac69f72fc 100755
--- a/plugins/inventory/vmware.py
+++ b/plugins/inventory/vmware.py
@@ -115,7 +115,7 @@ class VMwareInventory(object):
else:
cache_max_age = 0
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:
return json.load(cache)
return default