-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Added conditional to only collect qmpstatus on qemu VMs #4816
Added conditional to only collect qmpstatus on qemu VMs #4816
Conversation
@Thulium-Drake do you think maybe we can just use a default value if not set instead of a vm type check. As Yeah, weird that the tests missed it. |
The tests missed the issue because we mock the
This will require a bit more work to add tests for 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.
Thanks for the fix! Could you please add a changelog fragment? Thanks.
This comment was marked as outdated.
This comment was marked as outdated.
For some reason I run into some weird errors when trying the unit tests on my laptop, but I made some changes to them. It should now 'just' collect statuses from the mocked API instead of noop-ing :-) |
SUMMARY
This fixes an issue with LXC containers after #4723 was implemented. I completely missed this when reviewing it and the unit tests didn't cover it :-)
I'm not too sure however on how to update the unit tests in order to fix this (yet, but it's late, unless I come up with an idea earlier then someone else, I'll adjust the tests as well :-) )
ISSUE TYPE
COMPONENT NAME
proxmox inventory
ADDITIONAL INFORMATION
Running the module without this task results in the errors below: