Skip to content

Commit

Permalink
proxmox_template: fix the wrong path called on proxmox_template.task_…
Browse files Browse the repository at this point in the history
…status (#9277)

fix: add missing 's' on proxmox_template.task_status

Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 403418f)
  • Loading branch information
xunleii authored and patchback[bot] committed Dec 30, 2024
1 parent af2438f commit 23cb425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- 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).
2 changes: 1 addition & 1 deletion plugins/modules/proxmox_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def task_status(self, node, taskid, timeout):
timeout = timeout - 1
if timeout == 0:
self.module.fail_json(msg='Reached timeout while waiting for uploading/downloading template. Last line in task before timeout: %s' %
self.proxmox_api.node(node).tasks(taskid).log.get()[:1])
self.proxmox_api.nodes(node).tasks(taskid).log.get()[:1])

time.sleep(1)
return False
Expand Down

0 comments on commit 23cb425

Please sign in to comment.