From 247a7f5d8af935030be30031c0b1007f51b89b4f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 8 Oct 2020 10:39:29 -0400 Subject: [PATCH] Fix problem when domain was not set domain was checked even if domain not defined, make sure domain is defined before trying to use it. --- confluent_server/confluent/selfservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/selfservice.py b/confluent_server/confluent/selfservice.py index 15687d21..ac7501c7 100644 --- a/confluent_server/confluent/selfservice.py +++ b/confluent_server/confluent/selfservice.py @@ -33,7 +33,7 @@ def get_extra_names(nodename, cfg): currnames = currnames.split(',') for currname in currnames: names.add(currname) - if domain not in currname: + if domain and domain not in currname: names.add('{0}.{1}'.format(currname, domain)) return names