_getmaster must use cached value
authorEmmanuel Garette <egarette@cadoles.com>
Wed, 16 Dec 2015 22:04:00 +0000 (23:04 +0100)
committerEmmanuel Garette <egarette@cadoles.com>
Wed, 16 Dec 2015 22:04:00 +0000 (23:04 +0100)
tiramisu/option/masterslave.py

index 6bc7f82..df14ccb 100644 (file)
@@ -135,11 +135,11 @@ class MasterSlaves(object):
     def _getmaster(self, values, opt, path, validate, force_permissive,
                    validate_properties, c_slave_path,
                    c_slave_value, self_properties, index):
-        value = values._get_validated_value(opt, path, validate,
-                                            force_permissive,
-                                            validate_properties,
-                                            self_properties=self_properties,
-                                            index=index)
+        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)
         if index is None and validate is True:
             masterlen = len(value)
             for slave in self.getslaves(opt):