Skip config type checking for sdb values (#37560)

This commit is contained in:
Seth House 2016-11-08 14:57:47 -07:00 committed by Nicole Thomas
parent 453319b50a
commit ac754dbac5

View file

@ -1500,6 +1500,11 @@ def _validate_opts(opts):
if isinstance(val, VALID_OPTS[key]):
continue
# We don't know what data type sdb will return at run-time so we
# simply cannot check it for correctness here at start-time.
if isinstance(val, str) and val.startswith('sdb://'):
continue
if hasattr(VALID_OPTS[key], '__call__'):
try:
VALID_OPTS[key](val)