diff options
author | Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> | 2022-05-06 23:00:20 +0900 |
---|---|---|
committer | Douglas Mendizábal <dmendiza@redhat.com> | 2022-05-16 21:02:55 +0000 |
commit | 03c59e832fa3d1e701f9d5f02e3e2687e735b963 (patch) | |
tree | e3fe15d121fdffc6ec24568efbedebe1fe16b427 /barbicanclient | |
parent | 8e3a391fd63c0a319071fc55996faab3e6699a0f (diff) | |
download | python-barbicanclient-03c59e832fa3d1e701f9d5f02e3e2687e735b963.tar.gz |
Fix the import warning of secrets
openstack command gets the following warning:
/usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning:
The secrets module is moved to barbicanclient/v1 directory, direct import of
barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets
instead.
To fix that, import secrets from barbicanclient.v1 as the warning indicates.
Change-Id: Ib6548cfe30ce407f349cdeebec9a67e22a31bc74
Diffstat (limited to 'barbicanclient')
-rw-r--r-- | barbicanclient/barbican_cli/v1/secrets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/barbicanclient/barbican_cli/v1/secrets.py b/barbicanclient/barbican_cli/v1/secrets.py index dc9929d..65d94ad 100644 --- a/barbicanclient/barbican_cli/v1/secrets.py +++ b/barbicanclient/barbican_cli/v1/secrets.py @@ -19,7 +19,7 @@ from cliff import command from cliff import lister from cliff import show -from barbicanclient import secrets +from barbicanclient.v1 import secrets class DeleteSecret(command.Command): |