Exclude empty string from no_proxy
The no_proxy environment can exist with an empty value, and it should
be ignored when generating no_proxy setting.
Change-Id: I497e5caa4ccb9a649f89ebe2cfb98c43505a4445
Closes-Bug: #1968958
(cherry picked from commit 2231afdb4d
)
This commit is contained in:
parent
c2a57742d6
commit
71420abff0
@ -412,8 +412,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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user