Use "regex" of StrOpt to check option "port_range"
Since we have oslo.config 2.7, let's use "regex" of StrOpt to check the config option "port_range". Change-Id: I23d22d0ae77e6e440054f273b4b742dd4473eb1a
This commit is contained in:
parent
f1da349a4f
commit
dd66464106
|
@ -48,7 +48,7 @@ Interdependencies to other options:
|
|||
|
||||
port_range_opt = cfg.StrOpt('port_range',
|
||||
default=DEFAULT_PORT_RANGE,
|
||||
# TODO(markus_z): regex="\d+:\d+", As soon as we have oslo.config 2.7
|
||||
regex="\d+:\d+",
|
||||
help="""
|
||||
A range of TCP ports a guest can use for its backend.
|
||||
|
||||
|
|
Loading…
Reference in New Issue