Switch to osc-lib instead of cliff

Change-Id: Ibce04c37860606fc7ba389cea9090a17fca61cac
This commit is contained in:
Dmitry Tantsur 2016-08-25 13:46:22 +02:00
parent 671d8aded9
commit 73847b6f03
2 changed files with 6 additions and 9 deletions

View File

@ -19,9 +19,7 @@ import json
import logging
import sys
from cliff import command
from cliff import lister
from cliff import show
from osc_lib.command import command
from osc_lib import utils
import ironic_inspector_client
@ -61,7 +59,7 @@ def build_option_parser(parser):
return parser
class StartCommand(lister.Lister):
class StartCommand(command.Lister):
"""Start the introspection."""
COLUMNS = ('UUID', 'Error')
@ -117,7 +115,7 @@ class ReprocessCommand(command.Command):
client.reprocess(parsed_args.uuid)
class StatusCommand(show.ShowOne):
class StatusCommand(command.ShowOne):
"""Get introspection status."""
def get_parser(self, prog_name):
@ -144,7 +142,7 @@ class AbortCommand(command.Command):
client.abort(parsed_args.uuid)
class RuleImportCommand(lister.Lister):
class RuleImportCommand(command.Lister):
"""Import one or several introspection rules from a json file."""
COLUMNS = ("UUID", "Description")
@ -169,7 +167,7 @@ class RuleImportCommand(lister.Lister):
return self.COLUMNS, result
class RuleListCommand(lister.Lister):
class RuleListCommand(command.Lister):
"""List all introspection rules."""
COLUMNS = ("UUID", "Description")
@ -182,7 +180,7 @@ class RuleListCommand(lister.Lister):
return self.COLUMNS, rules
class RuleShowCommand(show.ShowOne):
class RuleShowCommand(command.ShowOne):
"""Show an introspection rule."""
def get_parser(self, prog_name):

View File

@ -1,7 +1,6 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
cliff!=1.16.0,!=1.17.0,>=1.15.0 # Apache-2.0
keystoneauth1>=2.10.0 # Apache-2.0
osc-lib>=1.0.2 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0