Finish up cleanups to modules:

* Add python>= 2.6 to documented requirements when a module's deps need
  python>= 2.6 so we know when a module can use python2.6+ syntax
* Remove BabyJSON usage
* Change modules to use if __name__ == '__main__' so that they can
  potentially be unittested

The BabJSON changes Fixes #1211
This commit is contained in:
Toshio Kuratomi 2015-05-11 13:21:17 -07:00
parent 2b5815efc9
commit 55d48a7a82

View file

@ -91,7 +91,9 @@ options:
- A list of host route dictionaries for the subnet.
required: false
default: None
requirements: ["shade"]
requirements:
- "python >= 2.6"
- "shade"
'''
EXAMPLES = '''
@ -251,4 +253,5 @@ def main():
# this is magic, see lib/ansible/module_common.py
from ansible.module_utils.basic import *
from ansible.module_utils.openstack import *
main()
if __name__ '__main__':
main()