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 <[email protected]>
Authored: Thu Oct 17 20:11:45 2013 +0200
Committer: Tomaz Muraus <[email protected]>
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)}

Reply via email to