Use oslo_config PortOpt support
The oslo_config library provide PortOpt type to validate the port of range now. References: https://review.openstack.org/#/c/231257/ Change-Id: Ib3c8ee53082affed1e88eac5698ef12adabb5def
This commit is contained in:
parent
8c9d2c8804
commit
62ae26623f
@ -17,11 +17,11 @@ from oslo_config import cfg
|
||||
|
||||
# Register options for the service
|
||||
OPTS = [
|
||||
cfg.IntOpt('port',
|
||||
default=8042,
|
||||
deprecated_group='DEFAULT',
|
||||
help='The port for the aodh API server.',
|
||||
),
|
||||
cfg.PortOpt('port',
|
||||
default=8042,
|
||||
deprecated_group='DEFAULT',
|
||||
help='The port for the aodh API server.',
|
||||
),
|
||||
cfg.StrOpt('host',
|
||||
default='0.0.0.0',
|
||||
help='The listen IP for the aodh API server.',
|
||||
|
@ -11,7 +11,7 @@ keystonemiddleware>=2.2.0
|
||||
lxml>=2.3
|
||||
oslo.context>=0.2.0 # Apache-2.0
|
||||
oslo.db>=1.12.0 # Apache-2.0
|
||||
oslo.config>=1.15.0 # Apache-2.0
|
||||
oslo.config>=2.6.0 # Apache-2.0
|
||||
oslo.i18n>=1.5.0 # Apache-2.0
|
||||
oslo.log>=1.2.0 # Apache-2.0
|
||||
oslo.policy>=0.5.0 # Apache-2.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user