libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] 06/07: Fix syntax.
Date Fri, 28 Jun 2019 17:25:54 GMT
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 <tomaz@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
 --------


Mime
View raw message