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 2019/06/28 17:25:54 UTC
[libcloud] 06/07: Fix syntax.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 1d6956683abdda61fbf1e0c326e29b730ce4fa2f
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Jun 28 19:12:31 2019 +0200
Fix syntax.
---
docs/compute/drivers/maxihost.rst | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/docs/compute/drivers/maxihost.rst b/docs/compute/drivers/maxihost.rst
index e427e26..f053540 100644
--- a/docs/compute/drivers/maxihost.rst
+++ b/docs/compute/drivers/maxihost.rst
@@ -12,16 +12,17 @@ driver constructor:
* ``api_key`` - Your API key. Can be obtained from https://control.maxihost.com/api
-
Example
-------
-from libcloud.compute.types import Provider
-from libcloud.compute.providers import get_driver
+.. code-block:: python
+
+ from libcloud.compute.types import Provider
+ from libcloud.compute.providers import get_driver
-cls = get_driver(Provider.MAXIHOST)
+ cls = get_driver(Provider.MAXIHOST)
-driver = cls('api token')
+ driver = cls('api token')
API Docs
--------