support callback with propertyerror in master for mandatory_warnings

This commit is contained in:
2016-03-17 22:06:16 +01:00
parent 952c880d10
commit 100a0110cd
2 changed files with 18 additions and 3 deletions

View File

@ -127,7 +127,7 @@ class MasterSlaves(object):
force_permissive,
validate_properties, slave_path,
slave_value, self_properties, index,
returns_raise)
returns_raise, setting_properties)
else:
return self._getslave(values, opt, path, validate,
force_permissive, trusted_cached_properties,
@ -136,13 +136,15 @@ class MasterSlaves(object):
def _getmaster(self, values, opt, path, validate, force_permissive,
validate_properties, c_slave_path,
c_slave_value, self_properties, index, returns_raise):
c_slave_value, self_properties, index, returns_raise,
setting_properties):
value = values._get_cached_value(opt, path=path, validate=validate,
force_permissive=force_permissive,
validate_properties=validate_properties,
self_properties=self_properties,
from_masterslave=True, index=index,
returns_raise=True)
returns_raise=True,
setting_properties=setting_properties)
if isinstance(value, Exception):
return value
if index is None and validate is True: