Updated setup.cfg and tox checks.

Change-Id: Ia70ab86dbdf11b38a7d4e8995545b685e567666d
This commit is contained in:
Nicola Peditto 2021-11-24 16:38:11 +01:00
parent a102f16b9e
commit ff1979ab71
9 changed files with 12 additions and 10 deletions

View File

@ -28,6 +28,7 @@ class AmbiguousAuthSystem(ClientException):
"""Could not obtain token and endpoint using provided credentials."""
pass
# Alias for backwards compatibility
AmbigiousAuthSystem = AmbiguousAuthSystem

View File

@ -443,5 +443,6 @@ def main():
print(encodeutils.safe_encode(six.text_type(e)), file=sys.stderr)
return 1
if __name__ == "__main__":
sys.exit(main())

View File

@ -105,9 +105,8 @@ class ExposedServiceManager(base.Manager):
'board': board_ident}
return self._list(self._path(path), "exposed")
def status_services(self, board_ident):
path = "%(board)s/services/status" % {
'board': board_ident}
return self._list(self._path(path), "exposed")
return self._list(self._path(path), "exposed")

View File

@ -119,7 +119,6 @@ def do_restore_service(cc, args):
help="Name or UUID of the board.")
def do_restore_services(cc, args):
"""Execute an action of the service."""
fields = res_fields.EXPOSED_SERVICE_RESOURCE_ON_BOARD.fields
field_labels = res_fields.EXPOSED_SERVICE_RESOURCE_ON_BOARD.labels
list = cc.exposed_service.restore_services(args.board)
@ -137,6 +136,5 @@ def do_restore_services(cc, args):
help="Name or UUID of the board.")
def do_status_services(cc, args):
"""Get status of sevices of the board."""
result = cc.exposed_service.status_services(args.board)
print(_('%s') % result)

View File

@ -192,6 +192,7 @@ class WebServiceOnBoardManager(base.CreateManager):
return self.api.raw_request('GET', self._path(path))
class EnabledWebservice(base.Resource):
def __repr__(self):
return "<EnabledWebservice %s>" % self._info

View File

@ -311,6 +311,7 @@ def do_enable_webservices(cc, args):
def do_disable_webservices(cc, args):
cc.webserviceonboard.disable_webservice(args.board)
@cliutils.arg(
'board',
metavar='<board_uuid>',

View File

@ -4,7 +4,8 @@
pbr>=2.0.0 # Apache-2.0
appdirs>=1.3.0 # MIT License
dogpile.cache>=0.6.2 # BSD
jsonschema!=2.5.0,<3.0.0,>=2.0.0 # MIT
#jsonschema!=2.5.0,<3.0.0,>=2.0.0 # MIT
jsonschema>=3.2.0 # MIT
keystoneauth1>=2.18.0 # Apache-2.0
osc-lib>=1.2.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0

View File

@ -13,11 +13,10 @@ classifier =
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
[files]
packages =

View File

@ -21,6 +21,7 @@ commands =
[testenv:pep8]
basepython = python3.8
#commands = /usr/local/bin/flake8 {posargs}
#commands = /usr/bin/flake8 {posargs}
commands = flake8 {posargs}
@ -42,5 +43,5 @@ basepython = python3.8
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
builtins = _
ignore = E711,E712,H404,H405,E123,E125,E901,H301
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,E711,E712,H405,W504,E731,H238,E126,E128,E731,H405,N530,W504,E129,E741,W503,F821,F999,F841,E402,W605,F405
exclude = .venv,.git,.tox,dist,doc,etc,*lib/python*,*egg,build