2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 12:41:39 +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 8285f2a3de
commit 504bee2d2a

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