mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +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
61f793040e
commit
247a7f5d8a
@ -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