]> git.proxmox.com Git - pve-common.git/commit
RESTenv: fork worker: fallback to 'root@pam' for task log user-id
authorOguz Bektas <o.bektas@proxmox.com>
Tue, 15 Mar 2022 11:52:39 +0000 (12:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Mar 2022 06:58:35 +0000 (07:58 +0100)
commitf44838ff41533c18db98ec1a39bb7bd696b4343d
tree36b83b6af3fd98a127f44a9dced36acc4be53d8d
parent06885ac8bb2945fc542875d4f78d559a20192df4
RESTenv: fork worker: fallback to 'root@pam' for task log user-id

The fallback had a "typo" in the realm and used 'root@pve' (pve vs.
pam) since initial import from SVN, but off-list talks with Dietmar
suggest that 'root@pam' was always the intended fallback value.

Call sites without a defined user parameter (found only push_file and
pull_file from pve-container) were logging the task-owner user as
'root@pve' which isn't a default one, so it wouldn't exist in most
setups.

For clarity, add a comment that this is only used for the task logs.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
[ T: Reword/add to commit message slightly ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/RESTEnvironment.pm