From 9da7e891760a56b899c42c12d64a6570ad9e0260 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 27 Jul 2015 09:32:42 +0200 Subject: [PATCH] empty property only available for multi --- tiramisu/setting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiramisu/setting.py b/tiramisu/setting.py index f371e5b..ff1288e 100644 --- a/tiramisu/setting.py +++ b/tiramisu/setting.py @@ -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):