-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add api_facts module #88
Add api_facts module #88
Conversation
Does not yet support 'config'. I'm not sure whether that's actually possible with the API.
Codecov Report
@@ Coverage Diff @@
## main #88 +/- ##
==========================================
+ Coverage 82.39% 82.47% +0.08%
==========================================
Files 16 21 +5
Lines 1545 1866 +321
Branches 247 297 +50
==========================================
+ Hits 1273 1539 +266
- Misses 218 252 +34
- Partials 54 75 +21
Continue to review full report at Codecov.
|
I will check next week, I don't have a pshisical time to do that early |
ready_for_review |
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.
api - those are ok
- doc_fragments
- module_utils
- module
api_facts.py - I never used facts ( the old one) before :) so I want to do some testing on api_facts, please give me some time to play with it .
testing - fake_api \m/ ... 👍
Also I'm not sure what you mean with "This does not support the config information yet" probably I can help ?
The If someone wants to get the output of |
Yes |
I do some testing, l really like the results :) At this stage I think can be approved except we want to try solve |
Since If that's ok I'll merge. |
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.
ready to be merge
sorry by mistake click close :( |
@NikolayDachev no problem, no damage done :) Thanks a lot for testing this! |
SUMMARY
Similar to the
facts
module, but uses the API instead of SSH. Inspried by the problems in #86 and #62. I also moved some common code from theapi
module to a new module_utils and a new docs fragment.This does not support the
config
information yet, I wasn't able to (quickly) figure out how to actually get them with the API. If anyone knows how to do that, I'd happily add it :)The code of the module is very similar to the
facts
module.It can be simplified a lot, might do that later.@heuels @NikolayDachev what do you think?
ISSUE TYPE
COMPONENT NAME
api_facts