diff --git a/lib/ansible/modules/extras/network/a10/a10_server.py b/lib/ansible/modules/extras/network/a10/a10_server.py index d06a2a661a..c89389e2c0 100644 --- a/lib/ansible/modules/extras/network/a10/a10_server.py +++ b/lib/ansible/modules/extras/network/a10/a10_server.py @@ -291,4 +291,5 @@ from ansible.module_utils.basic import * from ansible.module_utils.urls import * from ansible.module_utils.a10 import * -main() +if __name__ == '__main__': + main() diff --git a/lib/ansible/modules/extras/network/a10/a10_service_group.py b/lib/ansible/modules/extras/network/a10/a10_service_group.py index af664084b6..4b06ad2011 100644 --- a/lib/ansible/modules/extras/network/a10/a10_service_group.py +++ b/lib/ansible/modules/extras/network/a10/a10_service_group.py @@ -338,4 +338,5 @@ from ansible.module_utils.basic import * from ansible.module_utils.urls import * from ansible.module_utils.a10 import * -main() +if __name__ == '__main__': + main() diff --git a/lib/ansible/modules/extras/network/a10/a10_virtual_server.py b/lib/ansible/modules/extras/network/a10/a10_virtual_server.py index 1a04f1a175..cc0f537a98 100644 --- a/lib/ansible/modules/extras/network/a10/a10_virtual_server.py +++ b/lib/ansible/modules/extras/network/a10/a10_virtual_server.py @@ -292,6 +292,6 @@ def main(): from ansible.module_utils.basic import * from ansible.module_utils.urls import * from ansible.module_utils.a10 import * + if __name__ == '__main__': main() -