]> git.proxmox.com Git - pmg-api.git/commit
fix #4521: api/tasks: replace upid as filename for task log downloads
authorStefan Sterz <s.sterz@proxmox.com>
Thu, 9 Feb 2023 11:41:23 +0000 (12:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Mar 2023 11:58:58 +0000 (12:58 +0100)
commit3f5b4119a982dfa703347c79143f3585946447e2
treecebd28c06b5fdc2b11b8624f2909062cbc15329d
parent5c12470483e4bafb99e0c5f76436eae6c3773caa
fix #4521: api/tasks: replace upid as filename for task log downloads

previously the upid would just be used without a file extension when
downloading a task log. this lead to rather strange filenames that
appeared unfamiliar to users as the upid is not very prevalent in the
gui. set a proper file name based on the node name, worker type and a
time stamp instead. also add the ".log" file extension to indicate
that these files contain logs.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
src/PMG/API2/Tasks.pm