stop using requests#1586
Conversation
11a111b to
a2eb1af
Compare
|
Looks like a castling to me... |
|
"heh" the ever-returning problem is the python-package-dependency-handling of ansible-collection (which is effectively non-existant) |
ef92e83 to
8d6f80e
Compare
| username=to_bytes(self._foremanapi_username), | ||
| password=to_bytes(self._foremanapi_password), |
There was a problem hiding this comment.
this was done as part of #609, but it seems ansible's Request does that for us instead.
4e591e1 to
caed650
Compare
| params = kwargs.pop('params', None) | ||
| if params: | ||
| url += '?' + six.moves.urllib.parse.urlencode(params) |
There was a problem hiding this comment.
Doesn't Ansible's HTTP client code itself implement this?
2d7e0cd to
cb59c06
Compare
46e8cab to
88d7d5e
Compare
|
So this works (mostly?) and is a good ground for the discussion. Currently open issues:
|
Is there at least an upstream issue to support it? I think your approach to pop the parameter is safe, even if it's added, but not having to think about it is even nicer.
That also means dropping the ability to run on EL7, right? I don't know how much that's used, but I'd consider keeping it for a bit longer. |
"On EL7 by using only official packages", yes. Nothing forbids to run |
I don't think upstream cares, but I can ask. |
|
If it's an issue closed as WONTFIX that at least is a good code comment why it's done. |
|
d035bb7 to
e36dbb2
Compare
e36dbb2 to
a24d194
Compare
23192ed to
076c270
Compare
this is using Apipie/apypie#129 and some dirty tricks to make it work
don't try this at home, kids