Merge "Exclude empty string from no_proxy" into stable/wallaby

This commit is contained in:
Zuul 2022-05-27 12:41:41 +00:00 committed by Gerrit Code Review
commit 2a4feb48fd

View File

@ -408,8 +408,7 @@ class DeployOvercloud(command.Command):
no_proxy_list = map(utils.bracket_ipv6,
[no_proxy, overcloud_ip_or_fqdn,
keystone_admin_ip])
os.environ['no_proxy'] = ','.join(
[x for x in no_proxy_list if x is not None])
os.environ['no_proxy'] = ','.join([x for x in no_proxy_list if x])
utils.remove_known_hosts(overcloud_ip_or_fqdn)