From 8d48fc3273befddd179b2bb19fa80d77acf14cff Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 5 Aug 2020 16:31:08 -0400 Subject: [PATCH] Fix osdeploy initialize in no-domain environment If no domain is defined, then do not try to append --- confluent_server/bin/osdeploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index 23025ef1..8312d75b 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -60,7 +60,7 @@ def local_node_trust_setup(): neededlines = set([ 'HostbasedAuthentication yes', 'HostbasedUsesNameFromPacketOnly yes', 'IgnoreRhosts no']) - if not myname.endswith(domain): + if domain and not myname.endswith(domain): myprincipals.add('{0}.{1}'.format(myname, domain)) for pubkey in glob.glob('/etc/ssh/ssh_host_*key.pub'): currpubkey = open(pubkey, 'rb').read()