From: Aline Manera <alinefm(a)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(a)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
+@UrlSubNode("storageservers", True)
class StorageServers(Collection):
def __init__(self, model):
super(StorageServers, self).__init__(model)
--
1.7.10.4
Show replies by date
Reviewed-by: Crístian Viana <vianac(a)linux.vnet.ibm.com>
Am 28-01-2014 18:28, schrieb Aline Manera:
From: Aline Manera <alinefm(a)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(a)br.ibm.com>
Applied. Thanks.
Regards,
Aline Manera