Don't determine local IPv6 support if force_ip4=True

In case when user set in config to force usage of IPv4 shade
will not try to check if IPv6 is locally supported or not.

Change-Id: Id12df5de0de58bbe427301c8a32d4c622dfbcc99
Related-Bug: #2001001
This commit is contained in:
Sławek Kapłoński 2017-08-16 20:31:27 +00:00
parent b92697b1a3
commit e72a6cf6da

View File

@ -297,7 +297,8 @@ class OpenStackCloud(
self._legacy_clients = {}
self._raw_clients = {}
self._local_ipv6 = _utils.localhost_supports_ipv6()
self._local_ipv6 = (
_utils.localhost_supports_ipv6() if not self.force_ipv4 else False)
self.cloud_config = cloud_config