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
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_config import types as cfg_types
|
||||
from oslo_log import log as logging
|
||||
from six.moves.urllib import parse
|
||||
import zeroconf
|
||||
|
@ -38,10 +39,12 @@ opts = [
|
|||
cfg.IntOpt('lookup_attempts',
|
||||
min=1, default=3,
|
||||
help='Number of attempts to lookup a service.'),
|
||||
cfg.DictOpt('params',
|
||||
default={},
|
||||
help='Additional parameters to pass for the registered '
|
||||
'service.'),
|
||||
cfg.Opt('params',
|
||||
# This is required for values that contain commas.
|
||||
type=cfg_types.Dict(cfg_types.String(quotes=True)),
|
||||
default={},
|
||||
help='Additional parameters to pass for the registered '
|
||||
'service.'),
|
||||
]
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
|
Loading…
Reference in New Issue