Skip to content

Commit

Permalink
fix TeeReader for firmware from OVA
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed May 20, 2024
1 parent be9cc05 commit 2742f54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions virt-v2v/cold/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 2742f54

Please sign in to comment.