From 2742f54ac2c16208af4964a90e1a778abaf0afce Mon Sep 17 00:00:00 2001 From: Arik Hadas Date: Mon, 20 May 2024 16:53:48 +0300 Subject: [PATCH] fix TeeReader for firmware from OVA Signed-off-by: Arik Hadas --- virt-v2v/cold/entrypoint.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/virt-v2v/cold/entrypoint.go b/virt-v2v/cold/entrypoint.go index 92e248534..bec4dd26a 100644 --- a/virt-v2v/cold/entrypoint.go +++ b/virt-v2v/cold/entrypoint.go @@ -207,7 +207,6 @@ func executeVirtV2v(source string, args []string) (err error) { virtV2vMonitorCmd := exec.Command("/usr/local/bin/virt-v2v-monitor") virtV2vMonitorCmd.Stdin = r virtV2vMonitorCmd.Stdout = os.Stdout - virtV2vMonitorCmd.Stderr = os.Stderr var teeErr io.Reader if source == OVA { @@ -216,7 +215,7 @@ func executeVirtV2v(source string, args []string) (err error) { fmt.Printf("Error setting up stdout pipe: %v\n", err) return err } - teeErr = io.TeeReader(virtV2vStderrPipe, os.Stdout) + teeErr = io.TeeReader(virtV2vStderrPipe, os.Stderr) } if err = virtV2vMonitorCmd.Start(); err != nil {