diff options
author | Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> | 2022-05-06 23:00:20 +0900 |
---|---|---|
committer | Grzegorz Grasza <xek@redhat.com> | 2022-11-29 09:15:39 +0000 |
commit | caedb02bc39ad97538eae8371c758db18f118faa (patch) | |
tree | 082ebc6b6b47f0480a24cda372c8bf83d71cef2d | |
parent | afee180ee8f22854f247e7fb265323de282d52e4 (diff) | |
download | python-barbicanclient-stable/xena.tar.gz |
Fix the import warning of secretsstable/xena
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
(cherry picked from commit 03c59e832fa3d1e701f9d5f02e3e2687e735b963)
-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): |