mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-23 14:53:12 -06:00
77: A few stylistic changes
This commit is contained in:
parent
14a0658464
commit
62dc9a78fd
@ -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)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user