CLOUDSTACK-7680:Adding kwargs to volume.upload in base.py

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
(cherry picked from commit 4a1018e23b)
This commit is contained in:
Prashant Kumar Mishra 2014-10-07 15:45:48 +05:30 committed by David Nalley
parent 9605f57cb0
commit 0e2e1df3aa
1 changed files with 2 additions and 1 deletions

View File

@ -894,7 +894,7 @@ class Volume:
@classmethod
def upload(cls, apiclient, services, zoneid=None,
account=None, domainid=None, url=None):
account=None, domainid=None, url=None, **kwargs):
"""Uploads the volume to specified account"""
cmd = uploadVolume.uploadVolumeCmd()
@ -910,6 +910,7 @@ class Volume:
cmd.url = url
else:
cmd.url = services["url"]
[setattr(cmd, k, v) for k, v in kwargs.items()]
return Volume(apiclient.uploadVolume(cmd).__dict__)
def wait_for_upload(self, apiclient, timeout=10, interval=60):