aboutsummaryrefslogtreecommitdiff
path: root/foreman_ansible_inventory.py
diff options
context:
space:
mode:
Diffstat (limited to 'foreman_ansible_inventory.py')
-rwxr-xr-xforeman_ansible_inventory.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/foreman_ansible_inventory.py b/foreman_ansible_inventory.py
index e42aeb3..8af920c 100755
--- a/foreman_ansible_inventory.py
+++ b/foreman_ansible_inventory.py
@@ -336,5 +336,6 @@ class ForemanInventory(object):
else:
return json.dumps(data)
-ForemanInventory()
+if __name__ == '__main__':
+ ForemanInventory()