Print the request environment for debugging purposes.

This commit is contained in:
rcritten@redhat.com
2007-09-24 15:24:44 -04:00
parent 2fec56d679
commit a1196902aa

View File

@@ -140,10 +140,21 @@ class ModXMLRPCRequestHandler(object):
if req.subprocess_env.get("KRB5CCNAME") is not None: if req.subprocess_env.get("KRB5CCNAME") is not None:
opts['krbccache'] = req.subprocess_env.get("KRB5CCNAME") opts['krbccache'] = req.subprocess_env.get("KRB5CCNAME")
else:
sys.stderr.write("IPA: did not receive a Kerberos credentials cache. Expect problems")
sys.stderr.flush()
if pythonopts.get("IPADebug"): if pythonopts.get("IPADebug"):
opts['ipadebug'] = pythonopts.get("IPADebug") opts['ipadebug'] = pythonopts.get("IPADebug")
if opts['ipadebug'].lower() == "on":
for o in opts:
sys.stderr.write("IPA: setting option %s: %s\n" % (o, opts[o]))
sys.stderr.flush()
for e in req.subprocess_env:
sys.stderr.write("IPA: environment %s: %s\n" % (e, req.subprocess_env[e]))
sys.stderr.flush()
# Tack onto the end of the passed-in arguments any options we also # Tack onto the end of the passed-in arguments any options we also
# need # need
params = params + (opts,) params = params + (opts,)