summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-15 08:09:40 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-15 14:03:51 +0200
commitf7240c6df8bb6f3188faaf518031f9f0fbf89f5c (patch)
tree033439f18655e25d8ef7ca806c43e066de4f8b34 /ipalib
parent448af06234030d171cd0cee654f970456d53e9e6 (diff)
downloadfreeipa-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.py3
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()