From fb2aa0ed67a9aa9d7a1534b8deb5c994602c55a2 Mon Sep 17 00:00:00 2001 From: gwen Date: Tue, 11 Sep 2012 15:25:35 +0200 Subject: [PATCH] non mandatory api opt._name error --- tiramisu/config.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tiramisu/config.py b/tiramisu/config.py index b6b5b46..7218b94 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -220,7 +220,7 @@ class Config(object): def _is_empty(self, opt): if (not opt.is_multi() and self._cfgimpl_values[opt._name] == None) or \ (opt.is_multi() and (self._cfgimpl_values[opt._name] == [] or \ - None in self._cfgimpl_values[name])): + None in self._cfgimpl_values[opt._name])): return True return False @@ -284,12 +284,6 @@ class Config(object): homeconfig = self._cfgimpl_get_toplevel() mandatory = homeconfig._cfgimpl_mandatory if opt_or_descr.is_mandatory() and mandatory: - if name == 'ip_ssh_eth0': - print "c'est bien une mandataire2" - print self._cfgimpl_values[name] - print self._is_empty(opt_or_descr) - print type(opt_or_descr) - print opt_or_descr.is_empty_by_default() if self._is_empty(opt_or_descr) and \ opt_or_descr.is_empty_by_default(): raise MandatoryError("option: {0} is mandatory "