X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/4e5a68f8081f00e37c6250f3ba6246399e89c413..dd7db36058e0e645c634402fe9c26cee69eef753:/lib/rapi/connector.py diff --git a/lib/rapi/connector.py b/lib/rapi/connector.py index 2528c15..43c15c0 100644 --- a/lib/rapi/connector.py +++ b/lib/rapi/connector.py @@ -92,8 +92,6 @@ class R_root(baserlib.R_Generic): """/ resource. """ - DOC_URI = "/" - def GET(self): """Show the list of mapped resources. @@ -134,11 +132,9 @@ def _getResources(id): class R_2(baserlib.R_Generic): - """ /2 resourse. + """ /2 resource, the root of the version 2 API. """ - DOC_URI = "/2" - def GET(self): """Show the list of mapped resources. @@ -157,6 +153,7 @@ CONNECTOR.update({ "/2/jobs": rlib2.R_2_jobs, "/2/nodes": rlib2.R_2_nodes, re.compile(r'^/2/nodes/([\w\._-]+)$'): rlib2.R_2_nodes_name, + re.compile(r'^/2/nodes/([\w\._-]+)/tags$'): rlib2.R_2_nodes_name_tags, "/2/instances": rlib2.R_2_instances, re.compile(r'^/2/instances/([\w\._-]+)$'): rlib2.R_2_instances_name, re.compile(r'^/2/instances/([\w\._-]+)/tags$'): rlib2.R_2_instances_name_tags,