From 9bf39e78756f5c34e3d6064afb0dd2d84574e373 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 7 Jul 2015 08:51:39 -0400 Subject: [PATCH] reversed cache check condition to actually work fixes #11505 --- plugins/inventory/vmware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/vmware.py b/plugins/inventory/vmware.py index 27330b8bcd..1d533a5e15 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