Revision 07e68848 lib/utils/__init__.py
b/lib/utils/__init__.py | ||
---|---|---|
99 | 99 |
|
100 | 100 |
if ktype in (constants.VTYPE_STRING, constants.VTYPE_MAYBE_STRING): |
101 | 101 |
if target[key] is None and ktype == constants.VTYPE_MAYBE_STRING: |
102 |
msg = ("'None' is not a valid Maybe value for '%s'. " |
|
103 |
"Use 'VALUE_HS_NOTHING'") % (key, ) |
|
104 |
logging.warning(msg) |
|
105 |
elif (target[key] == constants.VALUE_HS_NOTHING |
|
106 |
and ktype == constants.VTYPE_MAYBE_STRING): |
|
107 | 102 |
pass |
108 | 103 |
elif not isinstance(target[key], basestring): |
109 | 104 |
if isinstance(target[key], bool) and not target[key]: |
Also available in: Unified diff