properties option in consistencies are now allowed

This commit is contained in:
2014-02-06 19:19:48 +01:00
parent c52b2f84f4
commit 72f06bc29d
2 changed files with 14 additions and 2 deletions

View File

@@ -367,7 +367,8 @@ class Option(BaseOption):
#if context, calculate value, otherwise get default value
if context is not None:
opt_value = context._getattr(
descr.impl_get_path_by_opt(opt), validate=False)
descr.impl_get_path_by_opt(opt), validate=False,
force_permissive=True)
else:
opt_value = opt.impl_getdefault()
@@ -873,7 +874,7 @@ class PortOption(Option):
if not self._min_value <= int(val) <= self._max_value:
raise ValueError(_('invalid port, must be an between {0} '
'and {1}').format(self._min_value,
self._max_value))
self._max_value))
except ValueError:
raise ValueError(_('invalid port'))