dockersetup.py: fix EMAIL_USE_SSL/TLS

Need to concatenate str(boolean), not bool

Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
This commit is contained in:
Tim Orling 2021-07-18 15:33:47 -07:00 committed by Tim Orling
parent ccc1fa775b
commit df4a764d59

View File

@ -353,13 +353,13 @@ def edit_dockercompose(hostname, dbpassword, dbapassword, secretkey, rmqpassword
elif '- "EMAIL_USE_SSL' in line: elif '- "EMAIL_USE_SSL' in line:
format = line[0:line.find('- "EMAIL_USE_SSL')].replace("#", "") format = line[0:line.find('- "EMAIL_USE_SSL')].replace("#", "")
if email_ssl: if email_ssl:
newlines.append(format + '- "EMAIL_USE_SSL=' + email_ssl + '"\n') newlines.append(format + '- "EMAIL_USE_SSL=' + str(email_ssl) + '"\n')
else: else:
newlines.append(format + '#- "EMAIL_USE_SSL=<set this here if needed>"\n') newlines.append(format + '#- "EMAIL_USE_SSL=<set this here if needed>"\n')
elif '- "EMAIL_USE_TLS' in line: elif '- "EMAIL_USE_TLS' in line:
format = line[0:line.find('- "EMAIL_USE_TLS')].replace("#", "") format = line[0:line.find('- "EMAIL_USE_TLS')].replace("#", "")
if email_tls: if email_tls:
newlines.append(format + '- "EMAIL_USE_TLS=' + email_tls + '"\n') newlines.append(format + '- "EMAIL_USE_TLS=' + str(email_tls) + '"\n')
else: else:
newlines.append(format + '#- "EMAIL_USE_TLS=<set this here if needed>"\n') newlines.append(format + '#- "EMAIL_USE_TLS=<set this here if needed>"\n')
elif "ports:" in line: elif "ports:" in line: