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):
|
def validate(self, value):
|
||||||
for rule in self.rules:
|
for rule in self.rules:
|
||||||
msg = rule(value)
|
msg = rule(value)
|
||||||
if msg is None:
|
if msg is not None:
|
||||||
continue
|
raise errors.RuleError(
|
||||||
raise errors.RuleError(
|
self.__class__.__name__,
|
||||||
self.__class__.__name__,
|
value,
|
||||||
value,
|
rule,
|
||||||
rule,
|
msg,
|
||||||
msg,
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -136,6 +135,7 @@ class cmd(plugable.Plugin):
|
|||||||
(args, kw) = self.normalize(*args, **kw)
|
(args, kw) = self.normalize(*args, **kw)
|
||||||
(args, kw) = self.autofill(*args, **kw)
|
(args, kw) = self.autofill(*args, **kw)
|
||||||
self.validate(*args, **kw)
|
self.validate(*args, **kw)
|
||||||
|
self.execute(*args, **kw)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user