summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-05-25 12:44:19 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-03 09:00:34 +0200
commit5a4a29be1c28e416174a9040d66c17d5288d3975 (patch)
tree329497a405e5075d5430ccb82019049c0c29228f /ipalib
parent11de39651f1547464ce38f013bd4d2f88141569a (diff)
downloadfreeipa-5a4a29be1c28e416174a9040d66c17d5288d3975.tar.gz
freeipa-5a4a29be1c28e416174a9040d66c17d5288d3975.tar.xz
freeipa-5a4a29be1c28e416174a9040d66c17d5288d3975.zip
rpc: do not validate command name in RPCClient.forward
The validation is already done on the server. This allows manually forwarding commands unknown to the client but known to the server. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/rpc.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index adca8f5bd..a549f0226 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -971,10 +971,6 @@ class RPCClient(Connectible):
:param args: Positional arguments to pass to remote command.
:param kw: Keyword arguments to pass to remote command.
"""
- if name not in self.Command:
- raise ValueError(
- '%s.forward(): %r not in api.Command' % (self.name, name)
- )
server = getattr(context, 'request_url', None)
self.log.info("Forwarding '%s' to %s server '%s'",
name, self.protocol, server)