summaryrefslogtreecommitdiffstats
path: root/ipalib/rpc.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-06-03 17:07:24 -0400
committerRob Crittenden <rcritten@redhat.com>2010-06-03 17:08:22 -0400
commit1dd7b11b0b5697f86f4d486fbe9509484ae2065a (patch)
tree8557e57432ea408b69dc6af27cc795c8db3716cc /ipalib/rpc.py
parent4924270b453655270da03b14f3e7825713820f0a (diff)
downloadfreeipa-1dd7b11b0b5697f86f4d486fbe9509484ae2065a.tar.gz
freeipa-1dd7b11b0b5697f86f4d486fbe9509484ae2065a.tar.xz
freeipa-1dd7b11b0b5697f86f4d486fbe9509484ae2065a.zip
Connect the -v cli argument to the verbose flag in xmlrpclib
If you pass two -v to the ipa command you'll get the XML-RPC data in the output. This can be handy so you know exactly what went out over the wire.
Diffstat (limited to 'ipalib/rpc.py')
-rw-r--r--ipalib/rpc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index e7f333848..f9067d1bd 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -374,11 +374,11 @@ class xmlclient(Connectible):
super(xmlclient, self).__init__()
self.__errors = dict((e.errno, e) for e in public_errors)
- def create_connection(self, ccache=None):
+ def create_connection(self, ccache=None, verbose=False):
kw = dict(allow_none=True, encoding='UTF-8')
if self.env.xmlrpc_uri.startswith('https://'):
kw['transport'] = KerbTransport()
- kw['verbose'] = False
+ kw['verbose'] = verbose
return ServerProxy(self.env.xmlrpc_uri, **kw)
def destroy_connection(self):