diff --git a/changelogs/fragments/9277-proxmox_template-fix-the-wrong-path-called-on-proxmox_template.task_status.yaml b/changelogs/fragments/9277-proxmox_template-fix-the-wrong-path-called-on-proxmox_template.task_status.yaml new file mode 100644 index 00000000000..e7ebc3f79e6 --- /dev/null +++ b/changelogs/fragments/9277-proxmox_template-fix-the-wrong-path-called-on-proxmox_template.task_status.yaml @@ -0,0 +1,3 @@ +bugfixes: + - proxmox_template - fix the wrong path called on proxmox_template.task_status (https://github.com/ansible-collections/community.general/pull/9277) + diff --git a/plugins/modules/proxmox_template.py b/plugins/modules/proxmox_template.py index 876e8a6847f..363a3497d71 100644 --- a/plugins/modules/proxmox_template.py +++ b/plugins/modules/proxmox_template.py @@ -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