Use IPOpt and PortOpt

IPOpt/PortOpt have been added to oslo.config to provide higher level
validation than StrOpt/IntOpt. This change uses them when possible.

This change also updates oslo.config version requirement to match
OpenStack global requirements.

Change-Id: I598faf980150a902ca978e8fda622ef90f064824
Depends-On: Iab34d66b1c12deb53dc5c302db88d8726cabc88c
This commit is contained in:
Cedric Brandily 2015-10-27 12:20:33 +09:00 committed by Stéphane Albert
parent 8f43e56c53
commit d43a369730
1 changed files with 6 additions and 6 deletions

View File

@ -45,12 +45,12 @@ auth_opts = [
]
api_opts = [
cfg.StrOpt('host_ip',
default="0.0.0.0",
help='Host serving the API.'),
cfg.IntOpt('port',
default=8888,
help='Host port serving the API.'),
cfg.IPOpt('host_ip',
default="0.0.0.0",
help='Host serving the API.'),
cfg.PortOpt('port',
default=8888,
help='Host port serving the API.'),
cfg.BoolOpt('pecan_debug',
default=False,
help='Toggle Pecan Debug Middleware.'),