diff options
author | Fabio Alessandro Locati <me@fale.io> | 2016-12-05 17:24:34 +0100 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2016-12-08 17:35:16 +0100 |
commit | 6f019c106637be9132d26468624ef0d0872b2728 (patch) | |
tree | f1183fdfd699d51f89c8ce1640000a1e291d5777 /lib | |
parent | Make `main()` calls conditional - system (#3652) (diff) | |
download | ansible-6f019c106637be9132d26468624ef0d0872b2728.tar.xz ansible-6f019c106637be9132d26468624ef0d0872b2728.zip |
Make `main()` calls conditional - web_infrastructure (#3653)
Diffstat (limited to 'lib')
3 files changed, 7 insertions, 4 deletions
diff --git a/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py b/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py index 0f47167f23..989145a36f 100644 --- a/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py +++ b/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py @@ -221,4 +221,5 @@ def main(): module.exit_json(**result) -main() +if __name__ == '__main__': + main() diff --git a/lib/ansible/modules/extras/web_infrastructure/jboss.py b/lib/ansible/modules/extras/web_infrastructure/jboss.py index 53ffcf1f84..8957f1b31d 100644 --- a/lib/ansible/modules/extras/web_infrastructure/jboss.py +++ b/lib/ansible/modules/extras/web_infrastructure/jboss.py @@ -147,4 +147,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/lib/ansible/modules/extras/web_infrastructure/jira.py b/lib/ansible/modules/extras/web_infrastructure/jira.py index 479e623b3c..e7d1e1a901 100755 --- a/lib/ansible/modules/extras/web_infrastructure/jira.py +++ b/lib/ansible/modules/extras/web_infrastructure/jira.py @@ -385,5 +385,5 @@ def main(): module.exit_json(changed=True, meta=ret) - -main() +if __name__ == '__main__': + main() |