Use osc-lib instead of openstackclient

osc-lib is a package of common support modules for writing OSC plugins.
All common functions, classes such as exceptions, utils, logs and so on
have been moved from openstackclient to osc-lib. So use osc-lib instead
of openstackclient.

We should not remove openstackclient from requirement.txt because it
will cause this plugin client CLI unable to work until users install
openstackclient themselves.

Change-Id: I9dc8486b3573ffc1083e5c15d988b77f47de9dd4
This commit is contained in:
Tang Chen 2016-06-24 10:42:48 +08:00
parent 2d54972258
commit 0bc93d17f7
5 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,7 @@
Babel>=2.3.4 # BSD
pbr>=1.6 # Apache-2.0
cliff!=1.16.0,!=1.17.0,>=1.15.0 # Apache-2.0
osc-lib>=0.1.0 # Apache-2.0
PrettyTable<0.8,>=0.7 # BSD
oslo.i18n>=2.1.0 # Apache-2.0
oslo.serialization>=1.10.0 # Apache-2.0

View File

@ -13,7 +13,7 @@
import logging
from openstackclient.common import utils
from osc_lib import utils
LOG = logging.getLogger(__name__)

View File

@ -17,7 +17,7 @@ import logging
import six
from cliff import lister
from openstackclient.common import utils
from osc_lib import utils
class ListFacet(lister.Lister):

View File

@ -16,7 +16,7 @@
import logging
from cliff import lister
from openstackclient.common import utils
from osc_lib import utils
class ListResourceType(lister.Lister):

View File

@ -18,7 +18,7 @@ import logging
import six
from cliff import lister
from openstackclient.common import utils
from osc_lib import utils
class SearchResource(lister.Lister):