set force_permissive to append

This commit is contained in:
Emmanuel Garette 2016-03-17 23:16:21 +01:00
parent 100a0110cd
commit 9adfffe339
2 changed files with 2 additions and 3 deletions

View File

@ -229,7 +229,8 @@ class MasterSlaves(object):
else: else:
return value return value
else: else:
multi.append(value, setitem=False, force=True, validate=validate) multi.append(value, setitem=False, force=True, validate=validate,
force_permissive=force_permissive)
one_has_value = True one_has_value = True
if not one_has_value: if not one_has_value:
#raise last err #raise last err

View File

@ -427,8 +427,6 @@ class Settings(object):
if not force: if not force:
forbidden_properties = forbidden_set_properties & properties forbidden_properties = forbidden_set_properties & properties
if forbidden_properties: if forbidden_properties:
print "super ..."
raise Exception('pouet')
raise ConfigError(_('cannot add those properties: {0}').format( raise ConfigError(_('cannot add those properties: {0}').format(
' '.join(forbidden_properties))) ' '.join(forbidden_properties)))
self._p_.setproperties(path, properties) self._p_.setproperties(path, properties)