From 5d4f0662d1abd30b6faa3725ca6ec0c0c9323571 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 23 Aug 2024 07:06:37 -0400 Subject: [PATCH] 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. --- .../el8/profiles/default/scripts/add_local_repositories | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories b/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories index fb26d5ef..79b0b6c5 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories +++ b/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories @@ -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)