[pbs-devel] [PATCH proxmox-backup 1/2] api2/node/termproxy: fix user in worker task

Dominik Csapak d.csapak at proxmox.com
Mon Jul 27 08:54:48 CEST 2020


'username' here is without realm, but we really want to use user at realm

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/api2/node.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api2/node.rs b/src/api2/node.rs
index b80a661..e6ecc85 100644
--- a/src/api2/node.rs
+++ b/src/api2/node.rs
@@ -137,7 +137,7 @@ async fn termproxy(
     let upid = WorkerTask::spawn(
         "termproxy",
         None,
-        &username,
+        &userid,
         false,
         move |worker| async move {
             // move inside the worker so that it survives and does not close the port
-- 
2.20.1






More information about the pbs-devel mailing list