On 23.11.2015 12:53, Tomas Babej wrote:
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.
NACK, use os.environ.pop('KRB5CCNAME', None) to safely remove it.
Also I don't think the comment is necessary, it's quite obvious what the
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code