mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Several cleanups to many modules:
* Fix docs to specify when python2.6+ is required (due to a library dep). This helps us know when it is okay to use python2.6+ syntax in the file. * remove BabyJson returns. See #1211 This commit fixes all but the openstack modules. * Use if __name__ == '__main__' to only run the main part of the module if the module is run as a program. This allows for the potential to unittest the code later.
This commit is contained in:
parent
0567404c03
commit
5336217649
17 changed files with 186 additions and 114 deletions
|
@ -120,7 +120,9 @@ notes:
|
|||
- This module should run from a system that can access vSphere directly.
|
||||
Either by using local_action, or using delegate_to.
|
||||
author: Richard Hoop <wrhoop@gmail.com>
|
||||
requirements: [ pysphere ]
|
||||
requirements:
|
||||
- "python >= 2.6"
|
||||
- pysphere
|
||||
'''
|
||||
|
||||
|
||||
|
@ -1320,4 +1322,5 @@ def main():
|
|||
|
||||
# this is magic, see lib/ansible/module_common.py
|
||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue