]> git.proxmox.com Git - pve-manager-legacy.git/commit
revert "fix #4333: redirect API handler output to STDERR"
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 Mar 2023 10:21:27 +0000 (11:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 Mar 2023 10:21:29 +0000 (11:21 +0100)
commit0addf0ae8f5fecefcef9deedbf05d02c8d6c2da8
tree9be85743a7791e268eb87320a51ea0b1a7ff854e
parentb380cb5814ec551588dfcbd6c5ed190f01d54029
revert "fix #4333: redirect API handler output to STDERR"

Redirecting stdout is not a feasible approach, as that also affects
all run_commands and other command executions/forks done by the API
handler, and thus breaks parsing outputs of such command executions
in the API handlers.

We plan to add a `--result-fd` option instead, allowing users to pass
their own file, open FD or named pipe to the pvesh, so that they can
process the output in streaming or in full afterward afterwards.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pvesh.pm