From b2d01ccba4d6b62632bb149c5de2e8eed153c68c Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 5 Dec 2016 17:15:33 +0000 Subject: Call main in conditional way - databases --- database/postgresql/postgresql_user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/postgresql/postgresql_user.py b/database/postgresql/postgresql_user.py index 532e8645..1cdc92ef 100644 --- a/database/postgresql/postgresql_user.py +++ b/database/postgresql/postgresql_user.py @@ -682,4 +682,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * from ansible.module_utils.database import * -main() + +if __name__ == '__main__': + main() -- cgit v1.2.1