_getmaster must use cached value
This commit is contained in:
parent
59f59b0b1b
commit
ce8b73507f
|
@ -135,11 +135,11 @@ class MasterSlaves(object):
|
||||||
def _getmaster(self, values, opt, path, validate, force_permissive,
|
def _getmaster(self, values, opt, path, validate, force_permissive,
|
||||||
validate_properties, c_slave_path,
|
validate_properties, c_slave_path,
|
||||||
c_slave_value, self_properties, index):
|
c_slave_value, self_properties, index):
|
||||||
value = values._get_validated_value(opt, path, validate,
|
value = values._get_cached_value(opt, path=path, validate=validate,
|
||||||
force_permissive,
|
force_permissive=force_permissive,
|
||||||
validate_properties,
|
validate_properties=validate_properties,
|
||||||
self_properties=self_properties,
|
self_properties=self_properties,
|
||||||
index=index)
|
from_masterslave=True, index=index)
|
||||||
if index is None and validate is True:
|
if index is None and validate is True:
|
||||||
masterlen = len(value)
|
masterlen = len(value)
|
||||||
for slave in self.getslaves(opt):
|
for slave in self.getslaves(opt):
|
||||||
|
|
Loading…
Reference in New Issue