red-hat-storage / rhcephcompose

A tool to compose releases of Red Hat Ceph Storage for Ubuntu
MIT License
1 stars 1 forks source link

artifacts: support persistent requests session #75

Closed ktdreyer closed 6 years ago

ktdreyer commented 6 years ago

Add a new optional session kwarg to download(), so we can pass in a persistent requests.Session() object. This allows us to optimize a large set of artifact downloads.

If we don't set session in the caller, just initialize a fresh requests Session as before.

Note, no callers use this yet.