diff options
-rwxr-xr-x | foreman_ansible_inventory.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/foreman_ansible_inventory.py b/foreman_ansible_inventory.py index eaae95f..5bb16b6 100755 --- a/foreman_ansible_inventory.py +++ b/foreman_ansible_inventory.py @@ -51,6 +51,7 @@ class ForemanInventory(object): self.update_cache() else: self.load_inventory_from_cache() + self.load_params_from_cache() self.load_cache_from_cache() data_to_print = "" @@ -77,7 +78,7 @@ class ForemanInventory(object): current_time = time() if (mod_time + self.cache_max_age) > current_time: if (os.path.isfile(self.cache_path_inventory) and - os.path.osfile(self.cache_path_params)): + os.path.isfile(self.cache_path_params)): return True return False |