aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xforeman_ansible_inventory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/foreman_ansible_inventory.py b/foreman_ansible_inventory.py
index bb2f6d4..aec58c4 100755
--- a/foreman_ansible_inventory.py
+++ b/foreman_ansible_inventory.py
@@ -77,7 +77,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