diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2015-07-07 08:51:39 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-07-07 08:56:00 -0400 |
commit | def94da14a64080645c0ca9fc67686a20c7b5ed8 (patch) | |
tree | 5b3d5dfb8484528e7c41a8b4f1cd708286cf3efc | |
parent | 8b3875f2866c73525e448dcea97ebd329edf4cf9 (diff) | |
download | ansible-def94da14a64080645c0ca9fc67686a20c7b5ed8.tar.gz |
reversed cache check condition to actually work
fixes #11505
-rwxr-xr-x | plugins/inventory/vmware.py | 2 |
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 |