From 8cadf88e868eacd838f8e3786100ee500615f773 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 5 Dec 2016 16:19:27 +0000 Subject: Make `main()` calls conditional - database (#3659) --- database/postgresql/postgresql_ext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'database/postgresql/postgresql_ext.py') 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() -- cgit v1.2.1