diff options
author | Gage Hugo <gagehugo@gmail.com> | 2017-09-12 16:06:15 -0500 |
---|---|---|
committer | Gage Hugo <gagehugo@gmail.com> | 2017-09-12 16:06:15 -0500 |
commit | 036416d64ab5d81f7843d386263186cdb68ef179 (patch) | |
tree | 979af7bf173d8392be11eccdbbd6021b8ad183b7 | |
parent | 1c6664da890fb91958f26dd7c8a24377bd880d43 (diff) | |
download | python-barbicanclient-036416d64ab5d81f7843d386263186cdb68ef179.tar.gz |
Correct docs usage of keystoneauth1 session
keystoneclient.session has been long deprecated in favor of
keystoneauth1.session. This change corrects entries in the
documentation to use the correct library's session.
Change-Id: I92226c9407ff77839a96cc9476f01eb7acf5c379
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | barbicanclient/client.py | 2 | ||||
-rw-r--r-- | barbicanclient/v1/client.py | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -38,7 +38,7 @@ with keystone authentication: .. code:: python >>> from keystoneclient.auth import identity - >>> from keystoneclient import session + >>> from keystoneauth1 import session >>> from barbicanclient import client >>> # We'll use Keystone API v3 for authentication diff --git a/barbicanclient/client.py b/barbicanclient/client.py index 4e1d058..f1910e7 100644 --- a/barbicanclient/client.py +++ b/barbicanclient/client.py @@ -123,7 +123,7 @@ def Client(version=None, session=None, *args, **kwargs): """Barbican client used to interact with barbican service. :param version: The API version to use. - :param session: An instance of keystoneclient.session.Session that + :param session: An instance of keystoneauth1.session.Session that can be either authenticated, or not authenticated. When using a non-authenticated Session, you must provide some additional parameters. When no session is provided it will default to a diff --git a/barbicanclient/v1/client.py b/barbicanclient/v1/client.py index 2679f7d..37ffc56 100644 --- a/barbicanclient/v1/client.py +++ b/barbicanclient/v1/client.py @@ -30,7 +30,7 @@ class Client(object): def __init__(self, session=None, *args, **kwargs): """Barbican client object used to interact with barbican service. - :param session: An instance of keystoneclient.session.Session that + :param session: An instance of keystoneauth1.session.Session that can be either authenticated, or not authenticated. When using a non-authenticated Session, you must provide some additional parameters. When no session is provided it will default to a |