You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ta...@apache.org on 2014/09/09 08:19:21 UTC
git commit: updated refs/heads/master to bbb3ea5
Repository: cloudstack
Updated Branches:
refs/heads/master 402fc914c -> bbb3ea598
CLOUDSTACK-7509: Added missing bound method in base library for copyTemplate operation
Signed-off-by: SrikanteswaraRao Talluri <ta...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bbb3ea59
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bbb3ea59
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bbb3ea59
Branch: refs/heads/master
Commit: bbb3ea5983928df66704ab78cef0a1c3e292cbe9
Parents: 402fc91
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Mon Sep 8 18:03:02 2014 +0530
Committer: SrikanteswaraRao Talluri <ta...@apache.org>
Committed: Tue Sep 9 11:48:57 2014 +0530
----------------------------------------------------------------------
tools/marvin/marvin/lib/base.py | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bbb3ea59/tools/marvin/marvin/lib/base.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py
index 982986b..d9c72f5 100755
--- a/tools/marvin/marvin/lib/base.py
+++ b/tools/marvin/marvin/lib/base.py
@@ -1252,6 +1252,16 @@ class Template:
return apiclient.copyTemplate(cmd)
+ def copy(self, apiclient, sourcezoneid, destzoneid):
+ "Copy Template from source Zone to Destination Zone"
+
+ cmd = copyTemplate.copyTemplateCmd()
+ cmd.id = self.id
+ cmd.sourcezoneid = sourcezoneid
+ cmd.destzoneid = destzoneid
+
+ return apiclient.copyTemplate(cmd)
+
@classmethod
def list(cls, apiclient, **kwargs):
"""List all templates matching criteria"""