From bf24ad8099366a3f17bc4e3a94236a75a2e673de Mon Sep 17 00:00:00 2001 From: nitt10prashant Date: Thu, 26 Nov 2015 16:27:15 +0530 Subject: [PATCH] CLOUDSTACK-9087:adding projectid parameter to create method of class VmSnapshot --- tools/marvin/marvin/lib/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py index 32e2d5915db0..401305b9bd78 100755 --- a/tools/marvin/marvin/lib/base.py +++ b/tools/marvin/marvin/lib/base.py @@ -4511,7 +4511,7 @@ def __init__(self, items): @classmethod def create(cls, apiclient, vmid, snapshotmemory="false", - name=None, description=None): + name=None, description=None, projectid=None): cmd = createVMSnapshot.createVMSnapshotCmd() cmd.virtualmachineid = vmid @@ -4521,6 +4521,8 @@ def create(cls, apiclient, vmid, snapshotmemory="false", cmd.name = name if description: cmd.description = description + if projectid: + cmd.projectid = projectid return VmSnapshot(apiclient.createVMSnapshot(cmd).__dict__) @classmethod