Use osc_lib instead of cliff

Base classes of commands are defined in cliff,
but have been encapsulated again in osc-lib for
all plugin clients. So use osc-lib instead of
cliff.

Change-Id: Ic2a6f5fc49117b1ba9f3cd290ba9df0a5c575e77
This commit is contained in:
Tang Chen 2016-06-29 17:16:36 +08:00
parent 0bc93d17f7
commit e7fe6f6b90
5 changed files with 7 additions and 8 deletions

View File

@ -4,7 +4,6 @@
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

View File

@ -16,11 +16,11 @@
import logging
import six
from cliff import lister
from osc_lib.command import command
from osc_lib import utils
class ListFacet(lister.Lister):
class ListFacet(command.Lister):
"""List Searchlight Facet."""
log = logging.getLogger(__name__ + ".ListFacet")

View File

@ -15,11 +15,11 @@
import logging
from cliff import lister
from osc_lib.command import command
from osc_lib import utils
class ListResourceType(lister.Lister):
class ListResourceType(command.Lister):
"""List Searchlight Resource Type (Plugin)."""
log = logging.getLogger(__name__ + ".ListResourceType")

View File

@ -17,11 +17,11 @@ import json
import logging
import six
from cliff import lister
from osc_lib.command import command
from osc_lib import utils
class SearchResource(lister.Lister):
class SearchResource(command.Lister):
"""Search Searchlight resource."""
log = logging.getLogger(__name__ + ".SearchResource")

View File

@ -70,7 +70,7 @@ class TestCase(testtools.TestCase):
class TestCommand(TestCase):
"""Test cliff command classes"""
"""Test osc_lib command classes"""
def setUp(self):
super(TestCommand, self).setUp()