2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-10-20 14:45:45 +00:00

Route the location resource to an input handler

Nothing matched the path, so an update was rejected with 400 before any
plugin saw it.
This commit is contained in:
Markus Hilger
2026-08-14 17:42:15 +02:00
parent bf9aba73d3
commit e9cd14c80a
+3
View File
@@ -543,6 +543,9 @@ def get_input_message(path, operation, inputdata, nodes=None, multinode=False,
elif (path[:3] == ['configuration', 'management_controller', 'domain_name']
and operation != 'retrieve'):
return InputDomainName(path, nodes, inputdata)
elif (path[:3] == ['configuration', 'management_controller', 'location']
and operation != 'retrieve'):
return InputAttributes(path, inputdata, nodes)
elif (path[:4] == ['configuration', 'management_controller', 'ntp',
'enabled'] and operation != 'retrieve'):
return InputNTPEnabled(path, nodes, inputdata)