-
Notifications
You must be signed in to change notification settings - Fork 43
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
[WIP] Add domain_info #146
Conversation
Rather than nesting requested data in 'info' key, return it at the same level as the rest. Also bypass argument validation and use the return from _load_params() to check if params have been provided. Removes the need to supply the empty dict syntax in the YAML.
Is it worth considering following the existing names as used for this in the inventory module https://github.com/ansible-collections/community.libvirt/blob/main/plugins/inventory/libvirt.py ( I also wonder whether |
I agree it might cause some confusion.. I stumbled on this during writing; the reason I had not (yet) implemented an I think we might be able to stick with What do you think? |
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.
@mlow hello, thanks for working on the new module! Nice to see people adding new content to the collection!
Could you please:
- Add
[WIP]
to the PR's description - Add
version_added:
tag (use the next minor release number) - Make the docs satisfying the style guide (including the paragraph about using macros)
- Be sure the module supports check mode (also please add
notes:
section with- Supports C(check_mode).
- Add integration tests. See the content of
tests/integration/targets
and the integration test quick start guide. - When it's ready for review, remove
[WIP]
from the description
Hi @mlow, thanks again for this contribution! I just want to follow up on the items mentioned above, do you think you will have time to update this? Thanks! |
Hi, sorry to have left this hanging. I do expect I'll have some time to work on this coming up. My current concern with integration testing is that I'm assuming we can't create KVM domains in the environment (am I wrong?); will it be possible to create LXC domains? |
Closing this for now. I have a body of work (related to this) that feels like it would fit well into community.libvirt, but currently don't have the time to drive it towards being ready for submission. |
SUMMARY
Adds a
domain_info
module, specializing in retrieving information about a specific domain.See #144 for the rational behind this addition.
ISSUE TYPE
COMPONENT NAME
domain_info
ADDITIONAL INFORMATION
I'm mainly putting this out there looking for feedback at the moment!