[Kimchi-devel] [PATCH] bug fix: Expose /storageservers

Aline Manera alinefm at linux.vnet.ibm.com
Tue Jan 28 20:28:03 UTC 2014


From: Aline Manera <alinefm at br.ibm.com>

Now to expose a new uri for kimchi server we need to use the UrlSubNode
decorator, otherwise the uri will not be available.

Signed-off-by: Aline Manera <alinefm at br.ibm.com>
---
 src/kimchi/control/storageservers.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/kimchi/control/storageservers.py b/src/kimchi/control/storageservers.py
index 5cbb5a1..9e7f4ac 100644
--- a/src/kimchi/control/storageservers.py
+++ b/src/kimchi/control/storageservers.py
@@ -20,11 +20,12 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
-from kimchi.control.base import Collection, Resource
-from kimchi.control.utils import get_class_name, model_fn
 import kimchi.template
+from kimchi.control.base import Collection, Resource
+from kimchi.control.utils import get_class_name, model_fn, UrlSubNode
 
 
+ at UrlSubNode("storageservers", True)
 class StorageServers(Collection):
     def __init__(self, model):
         super(StorageServers, self).__init__(model)
-- 
1.7.10.4




More information about the Kimchi-devel mailing list