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

Fix issue with cc and bcc getting added to mail if unset (#20610)

This commit is contained in:
jonathanbouvier 2017-01-25 06:47:37 -05:00 committed by John R Barker
parent 39608128c5
commit 8257ee3e25

View file

@ -58,9 +58,9 @@ def mail(subject='Ansible error mail', sender=None, to=None, cc=None, bcc=None,
b_content += b_body
b_addresses = b_to.split(b',')
if b_cc:
if cc:
b_addresses += b_cc.split(b',')
if b_bcc:
if bcc:
b_addresses += b_bcc.split(b',')
for b_address in b_addresses: