Skip to content

Commit

Permalink
fix: add missing 's' on proxmox_template.task_status
Browse files Browse the repository at this point in the history
Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Signed-off-by: Alexandre Nicolaie <[email protected]>
  • Loading branch information
xunleii committed Dec 18, 2024
1 parent 50b25f8 commit 956db7e
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/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 @@ -187,7 +187,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 956db7e

Please sign in to comment.