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
parent ebf2ee6317
commit 99eee7a983
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):