summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index 1c4fea8cb..e505f5354 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -930,6 +930,21 @@ class LocalOrRemote(Command):
return self.execute(*args, **options)
+class Local(Command):
+ """
+ A command that is explicitly executed locally.
+
+ This is for commands that makes sense to execute only locally
+ such as the help command.
+ """
+
+ def run(self, *args, **options):
+ """
+ Dispatch to forward() onlly.
+ """
+ return self.forward(*args, **options)
+
+
class Object(HasParam):
backend = None
methods = None