Skip to content

Commit b2d01cc

Browse files
committed
Call main in conditional way - databases
1 parent 60b82f7 commit b2d01cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

database/postgresql/postgresql_user.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,4 +682,6 @@ def main():
682682
# import module snippets
683683
from ansible.module_utils.basic import *
684684
from ansible.module_utils.database import *
685-
main()
685+
686+
if __name__ == '__main__':
687+
main()

0 commit comments

Comments
 (0)