Make `main()` calls conditional - web_infrastructure (#3653)

pull/18777/head
Fabio Alessandro Locati 8 years ago committed by Matt Clay
parent cbe3f4e5e1
commit 6f019c1066

@ -221,4 +221,5 @@ def main():
module.exit_json(**result) module.exit_json(**result)
main() if __name__ == '__main__':
main()

@ -147,4 +147,6 @@ def main():
# import module snippets # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()

@ -385,5 +385,5 @@ def main():
module.exit_json(changed=True, meta=ret) module.exit_json(changed=True, meta=ret)
if __name__ == '__main__':
main() main()

Loading…
Cancel
Save