mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Provide correct response when a node does not exist
This commit is contained in:
parent
b9f4e14170
commit
5152759270
@ -324,6 +324,8 @@ def handle_path(path, operation, configmanager, inputdata=None):
|
||||
elif 'pluginattrs' in plugroute:
|
||||
nodeattr = configmanager.get_node_attributes(
|
||||
[node], plugroute['pluginattrs'])
|
||||
if node not in nodeattr:
|
||||
raise exc.NotFoundException("Invalid node %s" % node)
|
||||
plugpath = None
|
||||
if 'default' in plugroute:
|
||||
plugpath = plugroute['default']
|
||||
|
Loading…
Reference in New Issue
Block a user