empty property only available for multi

This commit is contained in:
Emmanuel Garette 2015-07-27 09:32:42 +02:00
parent 8e7a32de08
commit 9da7e89176

View file

@ -473,7 +473,8 @@ class Settings(object):
not self._getcontext().cfgimpl_get_values()._isempty(
opt_or_descr, value):
properties.remove('mandatory')
elif not is_write and 'empty' in forced_properties and \
elif opt_or_descr.impl_is_multi() and \
not is_write and 'empty' in forced_properties and \
not opt_or_descr.impl_is_master_slaves('slave') and \
self._getcontext().cfgimpl_get_values()._isempty(
opt_or_descr, value, force_allow_empty_list=True):