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/08/15 16:56:54 UTC
git commit: docs: Update registering a third party driver docs.
Updated Branches:
refs/heads/trunk 6f430e1ca -> f1d11318f
docs: Update registering a third party driver docs.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/f1d11318
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/f1d11318
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/f1d11318
Branch: refs/heads/trunk
Commit: f1d11318fe30583c40e762eca61941f8ded018f6
Parents: 6f430e1
Author: Tomaz Muraus <to...@apache.org>
Authored: Thu Aug 15 16:56:41 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Aug 15 16:56:41 2013 +0200
----------------------------------------------------------------------
docs/other/registering-a-third-party-driver.rst | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/f1d11318/docs/other/registering-a-third-party-driver.rst
----------------------------------------------------------------------
diff --git a/docs/other/registering-a-third-party-driver.rst b/docs/other/registering-a-third-party-driver.rst
index bc75185..88e6d30 100644
--- a/docs/other/registering-a-third-party-driver.rst
+++ b/docs/other/registering-a-third-party-driver.rst
@@ -6,20 +6,19 @@ Driver is considered third party if it's not bundled with a Libcloud release.
To register a third party driver you should use :func:`provider.set_driver`
function from the corresponding component.
-Keep in mind that this function needs to be called before a third party driver
-is used.
-
:func:`set_driver` takes the following arguments:
.. code-block:: python
set_driver('provider_name', 'path.to.the.module', 'DriverClass')
+Keep in mind that the `provider_name` needs to be unique and this function
+needs to be called before using a third party driver.
+
For example:
.. literalinclude:: /examples/compute/register_3rd_party_driver.py
:language: python
-
-An example of existing third party driver can be found at
+An example of an existing third party driver can be found at
https://github.com/StratusLab/libcloud-drivers