community.general/lib/ansible/modules
Toshio Kuratomi a8af6c6baf Fix some SSL errors in mail.py causing SMTP Syntax Errors (Rebase of https://github.com/ansible/ansible-modules-extras/pull/708 ) (#19253)
* Rebase of https://github.com/ansible/ansible-modules-extras/pull/708

708 was full of extraneous merge commits interwoven with commits to
implement the feature. In the end the only way I could clean this up
in reasonable time was to just take a regular diff between the PR and
the base.  This lost the history of intermediate commits but I've
preserved attribution to @dayton967 via git's --author field.

Although I preserved the logic of the PR, there were a few additional
things that I cleaned up:

* Fixed import of email.mime.multipart
* Used the argspec to set port and timeout to integers instead of having
  ad hoc code inside of the module.
* Used argspec's choices for secure instead of ad hoc code inside of the
  module.
* Removed some unused variables
* Made secure_state a python boolean instead of using 0 and 1
* Used secure with string comparisons instead of turning it into an
  integer code.  This is much more readable.
* Fixed catching of SMTPExceptions (SMTPException wasn't imported
  directly so it needed to use the smtplib namespace.)
2016-12-13 04:28:24 -08:00
..
cloud cloudstack: cs_securitygroup_rule: fix impossible to set icmp_code and icmp_type to 0 (#19258) 2016-12-13 06:58:17 +01:00
clustering Removed dict.iteritems() in modules. (#18859) 2016-12-12 15:16:23 -08:00
commands Removed dict.iteritems() in modules. (#18859) 2016-12-12 15:16:23 -08:00
crypto Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
database Removed dict.iteritems() in modules. (#18859) 2016-12-12 15:16:23 -08:00
files Handle byte/string conversion on read/write with text module_utils (#19188) 2016-12-11 09:00:01 +01:00
identity Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
infrastructure Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
inventory Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
messaging Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
monitoring Removed dict.iteritems() in modules. (#18859) 2016-12-12 15:16:23 -08:00
network Removed dict.iteritems() in modules. (#18859) 2016-12-12 15:16:23 -08:00
notification Fix some SSL errors in mail.py causing SMTP Syntax Errors (Rebase of https://github.com/ansible/ansible-modules-extras/pull/708 ) (#19253) 2016-12-13 04:28:24 -08:00
packaging Removed dict.iteritems() in modules. (#18859) 2016-12-12 15:16:23 -08:00
remote_management Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
source_control Fix typos in git.py (#19186) 2016-12-11 17:17:05 +01:00
storage Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
system Removed dict.iteritems() in modules. (#18859) 2016-12-12 15:16:23 -08:00
univention Improve the dependency on univention (aka: declare it and fail nicely if it is not present) (#18840) 2016-12-09 08:39:40 -05:00
utilities Remove remnants of obsolete fireball mode. 2016-12-09 16:56:34 -07:00
web_infrastructure Open temp file only once 2016-12-12 10:11:46 -08:00
windows Fix modules with documentation errors. 2016-12-09 16:08:26 -07:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00