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:
parent
39608128c5
commit
8257ee3e25
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue