RedHatSatellite / ballista

Modular and easily extendable tool to manipulate Katello/Satellite 6
GNU General Public License v3.0
16 stars 10 forks source link

Use requests API more efficiently #2

Closed ekohl closed 8 years ago

ekohl commented 8 years ago

By setting the verify on the session, we no longer need to pass it to every request. We also let requests handle GET parameters instead of doing it manually.

I should note that I didn't test this, this is just what I noticed while reading the code.

yhekma commented 8 years ago

Looks good to me. This is the first time for me dealing with a rest api in python, so I'm glad for these kind of corrections. Cheers