mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-21 17:11:58 +00:00
Fix add_local_repositories for routed IPv4
Routed IPv4 deployment is not guaranteed to have an IPv6 server. In this case the safer bet is to try to just accept the IPv4 anyway.
This commit is contained in:
parent
edc3a3e9f3
commit
5d4f0662d1
@ -27,7 +27,7 @@ with open('/etc/confluent/confluent.deploycfg') as dplcfgfile:
|
||||
_, profile = line.split(' ', 1)
|
||||
if line.startswith('ipv4_method: '):
|
||||
_, v4cfg = line.split(' ', 1)
|
||||
if v4cfg == 'static' or v4cfg =='dhcp':
|
||||
if v4cfg == 'static' or v4cfg =='dhcp' or not server6:
|
||||
server = server4
|
||||
if not server:
|
||||
server = '[{}]'.format(server6)
|
||||
|
Loading…
Reference in New Issue
Block a user