summaryrefslogtreecommitdiff
path: root/database/postgresql/postgresql_ext.py
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-05 16:19:27 +0000
committerRyan Brown <sb@ryansb.com>2016-12-05 11:19:27 -0500
commit8cadf88e868eacd838f8e3786100ee500615f773 (patch)
tree44afe1fc69e2b264b77c54981464f5fdf67e3e49 /database/postgresql/postgresql_ext.py
parent572daab063f32cb3b95e4ae161dcadf7c43085bf (diff)
downloadansible-modules-extras-8cadf88e868eacd838f8e3786100ee500615f773.tar.gz
Make `main()` calls conditional - database (#3659)
Diffstat (limited to 'database/postgresql/postgresql_ext.py')
-rw-r--r--database/postgresql/postgresql_ext.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/database/postgresql/postgresql_ext.py b/database/postgresql/postgresql_ext.py
index b9fe87c4..9f14a182 100644
--- a/database/postgresql/postgresql_ext.py
+++ b/database/postgresql/postgresql_ext.py
@@ -189,5 +189,6 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.pycompat24 import get_exception
-main()
+if __name__ == '__main__':
+ main()