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/10/29 23:11:31 UTC

[2/2] git commit: docs: Update OpenStack driver example, make sure base url also contains tenant id.

docs: Update OpenStack driver example, make sure base url also contains tenant
id.


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

Branch: refs/heads/trunk
Commit: beec33c4f12e3d5f8ca1d5d84db9d68894928da0
Parents: b3df2b2
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Oct 29 23:07:09 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Oct 29 23:07:09 2013 +0100

----------------------------------------------------------------------
 docs/compute/drivers/openstack.rst                | 3 +++
 docs/examples/compute/openstack/force_base_url.py | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/beec33c4/docs/compute/drivers/openstack.rst
----------------------------------------------------------------------
diff --git a/docs/compute/drivers/openstack.rst b/docs/compute/drivers/openstack.rst
index 1f20288..807c2e8 100644
--- a/docs/compute/drivers/openstack.rst
+++ b/docs/compute/drivers/openstack.rst
@@ -66,6 +66,9 @@ Examples
 3. Skipping the endpoint selection using service catalog by providing ``ex_force_base_url`` argument
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+Keep in mind that the base url must also contain tenant id as the last
+component of the URL (``12345`` in the example bellow).
+
 .. literalinclude:: /examples/compute/openstack/force_base_url.py
    :language: python
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/beec33c4/docs/examples/compute/openstack/force_base_url.py
----------------------------------------------------------------------
diff --git a/docs/examples/compute/openstack/force_base_url.py b/docs/examples/compute/openstack/force_base_url.py
index 560591b..25556e9 100644
--- a/docs/examples/compute/openstack/force_base_url.py
+++ b/docs/examples/compute/openstack/force_base_url.py
@@ -13,4 +13,4 @@ OpenStack = get_driver(Provider.OPENSTACK)
 driver = OpenStack('your_auth_username', 'your_auth_password',
                    ex_force_auth_url='http://192.168.1.101:5000/v2.0',
                    ex_force_auth_version='2.0_password',
-                   ex_force_base_url='http://192.168.1.101:3000/v1')
+                   ex_force_base_url='http://192.168.1.101:3000/v1/12345')