From 62dc9a78fd919193a53d4490e6ac03ec889efa3c Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 7 Aug 2008 23:11:02 +0000 Subject: [PATCH] 77: A few stylistic changes --- ipalib/public.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ipalib/public.py b/ipalib/public.py index 358bd0762..2c5d31ae1 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -79,14 +79,13 @@ class opt(plugable.ReadOnly): def validate(self, value): for rule in self.rules: msg = rule(value) - if msg is None: - continue - raise errors.RuleError( - self.__class__.__name__, - value, - rule, - msg, - ) + if msg is not None: + raise errors.RuleError( + self.__class__.__name__, + value, + rule, + msg, + ) @@ -136,6 +135,7 @@ class cmd(plugable.Plugin): (args, kw) = self.normalize(*args, **kw) (args, kw) = self.autofill(*args, **kw) self.validate(*args, **kw) + self.execute(*args, **kw)