Merge "BZ #1241271 Honor a no_proxy setting for overcloud postdeploy"

This commit is contained in:
Dougal Matthews 2015-07-09 16:43:36 +02:00 committed by Gerrit Code Review
commit a064fac2a7

View File

@ -549,6 +549,10 @@ class DeployOvercloud(command.Command):
overcloud_ip = six.moves.urllib.parse.urlparse(
overcloud_endpoint).hostname
no_proxy = [os.environ.get('no_proxy'), overcloud_ip]
os.environ['no_proxy'] = ','.join(
[x for x in no_proxy if x is not None])
utils.remove_known_hosts(overcloud_ip)
keystone.initialize(