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:
parent
0bc93d17f7
commit
e7fe6f6b90
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue