Commit graph

18 commits

Author SHA1 Message Date
Dag Wieers
c14d4755e6 Adapt module to use new module._name property (#3918)
This is in line with the change from ansible/ansible#16087
2016-06-10 11:45:49 -04:00
Mike Mars
5bb8cd7b06 a) fail_json uses kwargs, b) outside the fork, log instead of returning json on stdout. 2016-06-04 17:35:48 -07:00
Mike Mars
5101c2563b data type fix on format string 2016-06-04 16:01:18 -07:00
Mike Mars
6769529bb7 corrected the string formatting (format isn't in 2.4 and even in some later versions of python 2.x requires an index). Tested for both compile ***& runtime exceptions*** against 2.4, 2.6, and 3.5. 2016-06-04 15:26:32 -07:00
Mike Mars
a76083d439 Missed umask octal conversion. 2016-06-03 15:07:52 -07:00
Mike Mars
529e75f981 Corrected string of text... 2016-06-03 15:02:55 -07:00
Mike Mars
82017ce298 1) Modified error handling to work with Python 2.4.
2) Fixed octal codes to fall in line with the ansible guide, "Porting Modules to Python 3"
3) updated the requirements.
All changes have been verified against Python 2.4, 2.6, & 3.5.
2016-06-03 11:40:02 -07:00
Mike Mars
aa44ef55e7 Fixing compile time errors irt exception handling for Python 3. This particular diff fixes problems with Exception handling and the use/misues IRT Python 3 of octal numbers (InvalidToken exceptions). 2016-06-02 15:58:01 -07:00
Geoff Wright
e7d3d6c673 Fixes: #3232. Use of datetime consistent with module_utils/basic.py 2016-03-12 10:15:03 +00:00
Toshio Kuratomi
e1ec52e365 Re-add version_added to fireball docs 2016-02-04 07:37:38 -08:00
Toshio Kuratomi
2c3a85902c Fireball was removed in 2.0 (action plugin is gone).
This commit removes the helper module that wouldn't work without the
action module and tells users what to use instead.
2016-02-04 07:35:46 -08:00
James Cammarata
79d18981c7 A few bug fixes and tweaks for the accelerate module 2015-10-02 00:48:43 -04:00
Toshio Kuratomi
a580acc12a No longer check for tmp_path being sent as we don't use it here anyway 2015-09-24 13:28:28 -07:00
Greg DeKoenigsberg
2a5f0bde87 Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
Brian Coca
d501f50c7b fixed try/except/finally to be 2.4 compatible 2015-05-13 15:52:37 -04:00
Toshio Kuratomi
60a66a544d 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.
2015-05-11 12:15:53 -07:00
Brian Coca
c6dcd38355 added missing init.py for utilities modules 2014-11-05 15:49:39 -05:00
Michael DeHaan
0be8798858 Renames. 2014-11-04 17:29:56 -05:00