From 5296daad83792b29a3eb61516f87b97dfb990e4d Mon Sep 17 00:00:00 2001 From: Matthew Oliver Date: Sat, 29 Oct 2016 11:36:27 +0200 Subject: Correct the example keystone session code imports This is a follow up to patch Ia3fd947ff619c11ff0ce474897533dcf7b49d9b3. One of the imports for the keystone session example was wrong. It was trying to import v3 like: from keystoneauth1 import v3 Whereas in my testing v3 actually exists deeper under identity: from keystoneauth1.identity import v3 This patch fixes this import in the example documentation. Change-Id: Ie31144fe65116d20a36b83a96079a3804bf55f29 --- doc/source/client-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/source/client-api.rst b/doc/source/client-api.rst index ff88d7d..57f49cb 100644 --- a/doc/source/client-api.rst +++ b/doc/source/client-api.rst @@ -24,7 +24,7 @@ Keystone Session .. code-block:: python from keystoneauth1 import session - from keystoneauth1 import v3 + from keystoneauth1.identity import v3 # Create a password auth plugin auth = v3.Password(auth_url='http://127.0.0.1:5000/v3/', -- cgit v1.2.1