Make main() calls conditional - cloud (#3657)

This commit is contained in:
Fabio Alessandro Locati 2016-12-05 16:20:51 +00:00 committed by Matt Clay
parent 11e3ec26ea
commit afa6fa9a89
21 changed files with 47 additions and 21 deletions

View file

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

View file

@ -518,4 +518,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()

View file

@ -553,4 +553,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()

View file

@ -252,4 +252,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()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -224,4 +224,5 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import * from ansible.module_utils.rax import *
# Invoke the module. # Invoke the module.
main() if __name__ == '__main__':
main()

View file

@ -310,4 +310,5 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import * from ansible.module_utils.rax import *
# Invoke the module. # Invoke the module.
main() if __name__ == '__main__':
main()

View file

@ -189,4 +189,5 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import * from ansible.module_utils.rax import *
# Invoke the module. # Invoke the module.
main() if __name__ == '__main__':
main()

View file

@ -173,4 +173,5 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import * from ansible.module_utils.rax import *
# Invoke the module. # Invoke the module.
main() if __name__ == '__main__':
main()

View file

@ -178,4 +178,5 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import * from ansible.module_utils.rax import *
# Invoke the module. # Invoke the module.
main() if __name__ == '__main__':
main()

View file

@ -114,4 +114,6 @@ def main():
module.exit_json(ansible_facts=data) module.exit_json(ansible_facts=data)
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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