[Kimchi-devel] [PATCH V3 3/5] clone template: update controller

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Mon Feb 17 05:58:04 UTC 2014


From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>

Add clone action in controller

Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
---
 src/kimchi/control/templates.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/kimchi/control/templates.py b/src/kimchi/control/templates.py
index ce1dda4..58dafcc 100644
--- a/src/kimchi/control/templates.py
+++ b/src/kimchi/control/templates.py
@@ -40,6 +40,7 @@ class Template(Resource):
                               "memory", "cdrom", "disks", "networks",
                               "graphics"]
         self.uri_fmt = "/templates/%s"
+        self.clone = self.generate_action_handler('clone')
 
     @property
     def data(self):
-- 
1.8.4.2




More information about the Kimchi-devel mailing list