2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 02:29:56 +00:00

Prevent spaces in nodenames

This commit is contained in:
Jarrod Johnson 2022-04-20 08:55:54 -04:00
parent 3297667ef8
commit f6a16a89f2

View File

@ -671,6 +671,8 @@ def create_group(inputdata, configmanager):
def create_node(inputdata, configmanager):
try:
nodename = inputdata['name']
if ' ' in nodename:
raise exc.InvalidArgumentException('Name "{0}" is not supported'.format(nodename))
del inputdata['name']
attribmap = {nodename: inputdata}
except KeyError: