diff options
author | R. Soto <roberto@numerica.cl> | 2017-07-03 17:34:58 -0600 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2017-07-03 23:07:53 -0400 |
commit | 144d0b6f9e24d55fa1197bd2ea69cfedab4b224a (patch) | |
tree | c092e6f9e6a74c00657044bfa07fcb395df4c709 | |
parent | 8ad00c0128444e1b0c65852b4b45450a8dbc8887 (diff) | |
download | ansible-144d0b6f9e24d55fa1197bd2ea69cfedab4b224a.tar.gz |
update auth_flag variable after STARTTLS connection is established, fixes #26376
(cherry picked from commit 5c0c98554794b215badf8407cc8e07961735bc0e)
-rw-r--r-- | lib/ansible/modules/notification/mail.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/modules/notification/mail.py b/lib/ansible/modules/notification/mail.py index 7c7d5f2e5b..862e61ccef 100644 --- a/lib/ansible/modules/notification/mail.py +++ b/lib/ansible/modules/notification/mail.py @@ -312,6 +312,7 @@ def main(): try: smtp.starttls() smtp.ehlo() + auth_flag = smtp.has_extn('AUTH') secure_state = True except smtplib.SMTPException: e = get_exception() |