don't check 'mandatory' setting for symlink

This commit is contained in:
2016-03-16 22:33:28 +01:00
parent 777542844f
commit cb89c74201
2 changed files with 8 additions and 12 deletions

View File

@ -610,16 +610,12 @@ class Values(object):
else:
if isinstance(opt, SymLinkOption) and \
not isinstance(opt, DynSymLinkOption):
true_opt = opt._impl_getopt()
true_path = descr.impl_get_path_by_opt(true_opt)
else:
true_opt = opt
true_path = path
self_properties = settings._getproperties(true_opt, true_path,
continue
self_properties = settings._getproperties(opt, path,
read_write=False,
setting_properties=setting_properties)
if 'mandatory' in self_properties:
err = self._get_cached_value(true_opt, path=true_path,
err = self._get_cached_value(opt, path=path,
trusted_cached_properties=False,
force_permissive=force_permissive,
setting_properties=setting_properties,