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
(cherry picked from commit 03c59e832f)
This commit is contained in:
Masayoshi Mizuma 2022-05-06 23:00:20 +09:00 committed by Grzegorz Grasza
parent afee180ee8
commit caedb02bc3
1 changed files with 1 additions and 1 deletions

View File

@ -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):