-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
proxmox_template: fix the wrong path called on proxmox_template.task_status #9277
base: main
Are you sure you want to change the base?
Conversation
2254068
to
956db7e
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.
Thanks for your contribution! My guess is that the path changed in some Proxmox release. The module also needs to support Proxmox versions where it currently works, so you need to figure out in which version it changed and adjust the code to only use the new path for the appropriate versions.
@@ -0,0 +1,2 @@ | |||
bugfixes: | |||
- proxmox_template - fix the wrong path called on proxmox_template.task_status (https://github.com/ansible-collections/community.general/pull/9277) |
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.
- proxmox_template - fix the wrong path called on proxmox_template.task_status (https://github.com/ansible-collections/community.general/pull/9277) | |
- proxmox_template - fix the wrong path called on ``proxmox_template.task_status`` (https://github.com/ansible-collections/community.general/issues/9276, https://github.com/ansible-collections/community.general/pull/9277). |
Hello, thank you for your reply. I hadn't thought to do any research, thinking it was a typo 😅. However, after some research, and as far as I can go, the API path to interact with a node has always been
With all this in mind, I think it's a typo 😟. |
6d82eb2
to
9d5fd39
Compare
Missing the 's' means using the wrong API, making log reading impossible. Should fix !9276 Co-Authored-By: Felix Fontein <[email protected]> Signed-off-by: Alexandre Nicolaie <[email protected]>
SUMMARY
The
task_status
functions uses the wrong Proxmox API path to fetch tasks logs (node
instead ofnodes
). The documentation can be found here: https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/tasks (thenode
path doesn't exist)Fixes #9276
ISSUE TYPE
COMPONENT NAME
proxmox_template