2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

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.
This commit is contained in:
Jarrod Johnson 2020-10-08 10:39:29 -04:00
parent 61f793040e
commit 247a7f5d8a

View File

@ -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