summaryrefslogtreecommitdiff
path: root/cloud/smartos
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-05 16:20:51 +0000
committerRyan Brown <sb@ryansb.com>2016-12-05 11:20:51 -0500
commit9684b456be7e7de1d3446273b184ebf9c61d66ba (patch)
tree075b6fe8f4797098addf4bedcb29e2a78615bfd8 /cloud/smartos
parenta861bb8c2fb9f4f9e47d7b15c83435149008e97b (diff)
downloadansible-modules-extras-9684b456be7e7de1d3446273b184ebf9c61d66ba.tar.gz
Make `main()` calls conditional - cloud (#3657)
Diffstat (limited to 'cloud/smartos')
-rw-r--r--cloud/smartos/smartos_image_facts.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloud/smartos/smartos_image_facts.py b/cloud/smartos/smartos_image_facts.py
index eb3ecd08..6a16e2e9 100644
--- a/cloud/smartos/smartos_image_facts.py
+++ b/cloud/smartos/smartos_image_facts.py
@@ -114,4 +114,6 @@ def main():
module.exit_json(ansible_facts=data)
from ansible.module_utils.basic import *
-main()
+
+if __name__ == '__main__':
+ main()