From 8855b3274c57c9deb089eac8659fc37445a50575 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 5 Dec 2016 17:15:33 +0000 Subject: [PATCH] Call main in conditional way - databases --- lib/ansible/modules/database/postgresql/postgresql_user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/postgresql/postgresql_user.py b/lib/ansible/modules/database/postgresql/postgresql_user.py index e2bed531b6..daad6583f2 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_user.py +++ b/lib/ansible/modules/database/postgresql/postgresql_user.py @@ -657,4 +657,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * from ansible.module_utils.database import * -main() + +if __name__ == '__main__': + main()