From 1dd7b11b0b5697f86f4d486fbe9509484ae2065a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 3 Jun 2010 17:07:24 -0400 Subject: 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. --- ipalib/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/rpc.py') diff --git a/ipalib/rpc.py b/ipalib/rpc.py index e7f33384..f9067d1b 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): -- cgit