-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stop using requests #1586
base: develop
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't Ansible's HTTP client code itself implement this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far, nope
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
this is using Apipie/apypie#129 and some dirty tricks to make it work
don't try this at home, kids