diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-15 08:09:40 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-15 14:03:51 +0200 |
commit | f7240c6df8bb6f3188faaf518031f9f0fbf89f5c (patch) | |
tree | 033439f18655e25d8ef7ca806c43e066de4f8b34 /ipalib | |
parent | 448af06234030d171cd0cee654f970456d53e9e6 (diff) | |
download | freeipa-f7240c6df8bb6f3188faaf518031f9f0fbf89f5c.tar.gz freeipa-f7240c6df8bb6f3188faaf518031f9f0fbf89f5c.tar.xz freeipa-f7240c6df8bb6f3188faaf518031f9f0fbf89f5c.zip |
frontend: call `execute` rather than `forward` in Local
This allows properly subclassing from both Local and other Command classes.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/frontend.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 161d7c391..49ff8a174 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -1195,6 +1195,9 @@ class Local(Command): """ return self.forward(*args, **options) + def forward(self, *args, **options): + return self.execute(*args, **options) + class Object(HasParam): # Create stubs for attributes that are set in _on_finalize() |