empty property only available for multi
authorEmmanuel Garette <egarette@cadoles.com>
Mon, 27 Jul 2015 07:32:42 +0000 (09:32 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Mon, 27 Jul 2015 07:32:42 +0000 (09:32 +0200)
tiramisu/setting.py

index f371e5b..ff1288e 100644 (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):