-
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
move some ansible-free code to apypie #1789
base: develop
Are you sure you want to change the base?
Conversation
4e78098
to
9a2b637
Compare
3dd17c4
to
ef6595f
Compare
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.
Consider this some of the notes I made while reading this. I realize it's very much a work in progress and should result in a real PR to apypie itself before updating the vendored copy.
plugins/module_utils/_apypie.py
Outdated
PER_PAGE = 2 << 31 | ||
payload = {'per_page': PER_PAGE} |
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.
Foreman supports per_page=all
, but Katello has its own mechanism using full_result=true
. I started Katello/katello#11126 to unify this, but I don't think that's ready to be merged any time soon.
|
||
if search is not None: | ||
params['search'] = search | ||
params['per_page'] = PER_PAGE |
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.
The constant definition is now unused.
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.
That's not correct ;)
plugins/modules/activation_key.py:from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule, PER_PAGE
efd64bc
to
8121f36
Compare
8121f36
to
9adb24b
Compare
No description provided.