From 9363d5fea676e1e083c5afe5287ef30c806046bf Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Tue, 13 Mar 2012 16:23:45 -0700 Subject: Properly return 501 for unsupported Catalog calls Similar to the other APIs, this creates a Driver class that describes expected functionality of the catalog driver and raises NotImplemented accordingly. NotImplementedError()'s are caught and returned as proper 501s instead of AttributeErrors. Also fixes some inconsistent paramters names in the sql backend. Fixes bug 954087 Update: Convert usage of NotImplementedError() to new keystone.exception.NotImplemented() for all unimplemented driver actions. Change-Id: I69d8e21a6f651e69b724ec5ed5784645bad80c00 --- doc/source/architecture.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/source') diff --git a/doc/source/architecture.rst b/doc/source/architecture.rst index 97a68f4c..cbd2f40a 100644 --- a/doc/source/architecture.rst +++ b/doc/source/architecture.rst @@ -207,7 +207,7 @@ variety of CRUD operations are provided for the sake of development and testing. CRUD is treated as an extension or additional feature to the core feature set in that it is not required that a backend support it. It is expected that backends for services that don't support the CRUD operations will raise a -:mod:`NotImplementedError`. +:mod:`keystone.exception.NotImplemented`. ---------------------------------- -- cgit