2
0
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:
Jarrod Johnson 2014-04-18 14:50:43 -04:00
parent b9f4e14170
commit 5152759270

View File

@ -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']