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:
Toshio Kuratomi
2015-05-11 12:15:53 -07:00
committed by Matt Clay
parent 0567404c03
commit 5336217649
17 changed files with 186 additions and 114 deletions

View File

@@ -130,6 +130,7 @@ options:
default: 'success'
required: false
requirements:
- "python >= 2.6"
- boto
'''

View File

@@ -241,7 +241,9 @@ options:
default: null
aliases: []
version_added: 1.9
requirements: [ "boto" ]
requirements:
- "python >= 2.6"
- "boto"
author: Bruce Pennypacker, Will Thames
'''