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:
parent
8285f2a3de
commit
504bee2d2a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user