mdns: allow quoting in the [mdns]params configuration option
Without quoting support it is not possible to use commas in the dict values. Commas are required for parameters like ipa_inspection_collectors. Change-Id: Id2bb06d461501048748feccee87ead4241a70179
This commit is contained in:
parent
7daba837f6
commit
617056b2a3
|
@ -21,6 +21,7 @@ import socket
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_config import types as cfg_types
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from six.moves.urllib import parse
|
from six.moves.urllib import parse
|
||||||
import zeroconf
|
import zeroconf
|
||||||
|
@ -38,10 +39,12 @@ opts = [
|
||||||
cfg.IntOpt('lookup_attempts',
|
cfg.IntOpt('lookup_attempts',
|
||||||
min=1, default=3,
|
min=1, default=3,
|
||||||
help='Number of attempts to lookup a service.'),
|
help='Number of attempts to lookup a service.'),
|
||||||
cfg.DictOpt('params',
|
cfg.Opt('params',
|
||||||
default={},
|
# This is required for values that contain commas.
|
||||||
help='Additional parameters to pass for the registered '
|
type=cfg_types.Dict(cfg_types.String(quotes=True)),
|
||||||
'service.'),
|
default={},
|
||||||
|
help='Additional parameters to pass for the registered '
|
||||||
|
'service.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
Loading…
Reference in New Issue