set force_permissive to append
This commit is contained in:
parent
100a0110cd
commit
9adfffe339
2 changed files with 2 additions and 3 deletions
|
@ -229,7 +229,8 @@ class MasterSlaves(object):
|
|||
else:
|
||||
return value
|
||||
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
|
||||
if not one_has_value:
|
||||
#raise last err
|
||||
|
|
|
@ -427,8 +427,6 @@ class Settings(object):
|
|||
if not force:
|
||||
forbidden_properties = forbidden_set_properties & properties
|
||||
if forbidden_properties:
|
||||
print "super ..."
|
||||
raise Exception('pouet')
|
||||
raise ConfigError(_('cannot add those properties: {0}').format(
|
||||
' '.join(forbidden_properties)))
|
||||
self._p_.setproperties(path, properties)
|
||||
|
|
Loading…
Reference in a new issue