community.general/lib/ansible/modules/notification
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
..
__init__.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
campfire.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
flowdock.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
grove.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
hall.py Improve quotes - notification/hall.py (#19166) 2016-12-11 22:16:42 +00:00
hipchat.py Remove unused quotes - notification/hipchat.py (#19151) 2016-12-10 09:28:15 -05:00
irc.py Inline array in example (#19055) 2016-12-09 05:48:03 -05:00
jabber.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
mail.py 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
mqtt.py Native YAML - notification/mqtt.py (#19164) 2016-12-10 11:44:59 -08:00
nexmo.py Improve quotes - notification/nexmo.py (#19168) 2016-12-11 22:14:15 +00:00
osx_say.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
pushbullet.py Remove unused quotes - notification/pushbullet.py (#19149) 2016-12-10 09:29:02 -05:00
pushover.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
rocketchat.py Always run on localhost - notification/rocketchat.py (#19170) 2016-12-11 22:13:40 +00:00
sendgrid.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
slack.py Remove deprecated example (#19161) 2016-12-10 09:21:25 -05:00
sns.py Remove useless quotes - notification/sns.py (#19169) 2016-12-11 22:14:00 +00:00
telegram.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
twilio.py Remove unused quotes - notification/twilio.py (#19152) 2016-12-10 09:27:56 -05:00
typetalk.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00