summaryrefslogtreecommitdiffstats
path: root/ipapython/py_default_encoding
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-11-23 12:47:56 +0100
committerTomas Babej <tbabej@redhat.com>2015-11-25 13:51:10 +0100
commit1904d7cc3ab33046428dbdcb7c6f521f9e083287 (patch)
tree1849f7d7266dd47f250608b65f876f4dd3458f5f /ipapython/py_default_encoding
parent6eeb4e4f2a9fb6fe5cf83e6b84c737ad3e295de1 (diff)
downloadfreeipa-1904d7cc3ab33046428dbdcb7c6f521f9e083287.tar.gz
freeipa-1904d7cc3ab33046428dbdcb7c6f521f9e083287.tar.xz
freeipa-1904d7cc3ab33046428dbdcb7c6f521f9e083287.zip
private_ccache: Harden the removal of KRB5CCNAME env variable
If the code within the private_ccache contextmanager does not set/removes the KRB5CCNAME, the pop method will raise KeyError, which will cause unnecessary termination of the code flow. Make sure the KRB5CCNAME is popped out of os.environ only if present. Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipapython/py_default_encoding')
0 files changed, 0 insertions, 0 deletions