From notifications-return-15474-archive-asf-public=cust-asf.ponee.io@libcloud.apache.org Fri Jun 28 17:25:51 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E32F71807BD for ; Fri, 28 Jun 2019 19:25:49 +0200 (CEST) Received: (qmail 71582 invoked by uid 500); 28 Jun 2019 17:25:49 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 71402 invoked by uid 500); 28 Jun 2019 17:25:49 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 71389 invoked by uid 99); 28 Jun 2019 17:25:49 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2019 17:25:49 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 17E8C87ADD; Fri, 28 Jun 2019 17:25:49 +0000 (UTC) Date: Fri, 28 Jun 2019 17:25:54 +0000 To: "commits@libcloud.apache.org" Subject: [libcloud] 06/07: Fix syntax. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: tomaz@apache.org In-Reply-To: <156174274851.7363.6212315413214507137@gitbox.apache.org> References: <156174274851.7363.6212315413214507137@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: libcloud X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Rev: 1d6956683abdda61fbf1e0c326e29b730ce4fa2f X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20190628172549.17E8C87ADD@gitbox.apache.org> 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 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 --------