Call main in conditional way - packaging (#5826)

pull/18777/head
Fabio Alessandro Locati 8 years ago committed by Matt Clay
parent 17c80f6bbb
commit 5edbbabe0b

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

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

@ -556,4 +556,5 @@ def main():
from ansible.module_utils.basic import *
from ansible.module_utils.urls import *
main()
if __name__ == '__main__':
main()

@ -179,4 +179,5 @@ def main():
# this is magic, see lib/ansible/module_common.py
from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()

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

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

@ -422,4 +422,5 @@ def main():
module.exit_json(changed=True, msg="System successfully unregistered from %s." % rhn.hostname)
main()
if __name__ == '__main__':
main()

Loading…
Cancel
Save