mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix issue with cc and bcc getting added to mail if unset (#20610)
This commit is contained in:
committed by
John R Barker
parent
39608128c5
commit
8257ee3e25
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user