Fix some docstrings.

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/9c0ef27f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/9c0ef27f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/9c0ef27f

Branch: refs/heads/trunk
Commit: 9c0ef27f0d790d896fe87a4a997eec1e09ed7d4b
Parents: 51d1194
Author: Tomaz Muraus <[email protected]>
Authored: Tue Nov 11 18:58:48 2014 +0800
Committer: Tomaz Muraus <[email protected]>
Committed: Tue Nov 11 18:58:48 2014 +0800

----------------------------------------------------------------------
 libcloud/compute/base.py               |  4 ++--
 libcloud/compute/drivers/cloudstack.py |  2 +-
 libcloud/loadbalancer/base.py          | 10 +++++-----
 3 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/9c0ef27f/libcloud/compute/base.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/base.py b/libcloud/compute/base.py
index c043706..8387104 100644
--- a/libcloud/compute/base.py
+++ b/libcloud/compute/base.py
@@ -1139,7 +1139,7 @@ class NodeDriver(BaseDriver):
         :type source_region: ``str``
 
         :param node_image: NodeImage to copy.
-        :type node_image: :class`.NodeImage`:
+        :type node_image: :class:`.NodeImage`:
 
         :param name: name for new image.
         :type name: ``str``
@@ -1228,7 +1228,7 @@ class NodeDriver(BaseDriver):
         Delete an existing key pair.
 
         :param key_pair: Key pair object.
-        :type key_pair: :class`.KeyPair`
+        :type key_pair: :class:`.KeyPair`
         """
         raise NotImplementedError(
             'delete_key_pair not implemented for this driver')

http://git-wip-us.apache.org/repos/asf/libcloud/blob/9c0ef27f/libcloud/compute/drivers/cloudstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudstack.py 
b/libcloud/compute/drivers/cloudstack.py
index d8475df..28fc144 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -1864,7 +1864,7 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, 
NodeDriver):
         Delete an existing key pair.
 
         :param key_pair: Key pair object.
-        :type key_pair: :class`libcloud.compute.base.KeyPair`
+        :type key_pair: :class:`libcloud.compute.base.KeyPair`
 
         :param     projectid: The project associated with keypair
         :type      projectid: ``str``

http://git-wip-us.apache.org/repos/asf/libcloud/blob/9c0ef27f/libcloud/loadbalancer/base.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/base.py b/libcloud/loadbalancer/base.py
index b785af0..602ea22 100644
--- a/libcloud/loadbalancer/base.py
+++ b/libcloud/loadbalancer/base.py
@@ -185,7 +185,7 @@ class Driver(BaseDriver):
         :type  members: ``list`` of :class:`Member`
 
         :param algorithm: Load balancing algorithm, defaults to ROUND_ROBIN.
-        :type algorithm: :class:`Algorithm`
+        :type algorithm: :class:`.Algorithm`
 
         :rtype: :class:`LoadBalancer`
         """
@@ -230,7 +230,7 @@ class Driver(BaseDriver):
         :type    name: ``str``
 
         :param algorithm: New load balancer algorithm
-        :type    algorithm: :class:`Algorithm`
+        :type    algorithm: :class:`.Algorithm`
 
         :param protocol: New load balancer protocol
         :type    protocol: ``str``
@@ -317,12 +317,12 @@ class Driver(BaseDriver):
 
     def _value_to_algorithm(self, value):
         """
-        Return :class`Algorithm` based on the value.
+        Return :class:`.Algorithm` based on the value.
 
         :param value: Algorithm name (e.g. http, tcp, ...).
         :type  value: ``str``
 
-        @rype :class:`Algorithm`
+        :rtype: :class:`.Algorithm`
         """
         try:
             return self._VALUE_TO_ALGORITHM_MAP[value]
@@ -337,7 +337,7 @@ class Driver(BaseDriver):
         :param value: Algorithm enum.
         :type  value: :class:`Algorithm`
 
-        @rype ``str``
+        :rtype: ``str``
         """
         try:
             return self._ALGORITHM_TO_VALUE_MAP[algorithm]

Reply via email to