
If an external session object was not passed to the Session class, we create a requests.Session() on our own. Once this is used, it may still have an open connection when the auth Session is closed. We need to handle the closing of the requests.Session() ourselves if we created one. If you do not close it, a ResourceWarning may be reported about the socket that is left open. If a session object is provided, we do not attempt to close it as it will be up to the code consuming keystoneauth to properly handle cleaning up the provided session. Change-Id: I590755d665b371c76ba8e02836d81d41a95ac601 Closes-Bug: #1838704
Team and repository tags
keystoneauth
This package contains tools for authenticating to an OpenStack-based cloud. These tools include:
- Authentication plugins (password, token, and federation based)
- Discovery mechanisms to determine API version support
- A session that is used to maintain client settings across requests (based on the requests Python library)
Further information:
- Free software: Apache license
- Documentation: https://docs.openstack.org/keystoneauth/latest/
- Source: https://opendev.org/openstack/keystoneauth
- Bugs: https://bugs.launchpad.net/keystoneauth
- Release notes: https://docs.openstack.org/releasenotes/keystoneauth/
Description
Languages
Python
100%