You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/10/17 22:10:40 UTC
[04/16] git commit: Document argument type in the ec2 driver.
Document argument type in the ec2 driver.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/104d9ba0
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/104d9ba0
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/104d9ba0
Branch: refs/heads/trunk
Commit: 104d9ba043f19b04ee1ea0bb7922c4e1de867c54
Parents: c03723d
Author: Tomaz Muraus <to...@apache.org>
Authored: Thu Oct 17 20:11:45 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Oct 17 20:11:45 2013 +0200
----------------------------------------------------------------------
libcloud/compute/drivers/ec2.py | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/104d9ba0/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 5096ce5..6437a8f 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -731,6 +731,10 @@ class BaseEC2NodeDriver(NodeDriver):
return volumes
def create_volume(self, size, name, location=None, snapshot=None):
+ """
+ :param location: Datacenter in which to create a volume in.
+ :type location: :class:`ExEC2AvailabilityZone`
+ """
params = {
'Action': 'CreateVolume',
'Size': str(size)}