1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

update auth_flag variable after STARTTLS connection is established, fixes #26376

This commit is contained in:
R. Soto 2017-07-03 17:34:58 -06:00 committed by Brian Coca
parent 505dd9fe44
commit 5c0c985547

View file

@ -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()