From 5492823ccc68dfeecb85ca587be2f82ac5c52b0a Mon Sep 17 00:00:00 2001 From: Arik Hadas Date: Wed, 29 May 2024 18:40:16 +0300 Subject: [PATCH] v2v: hard-code command Signed-off-by: Arik Hadas --- virt-v2v/cold/entrypoint.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-v2v/cold/entrypoint.go b/virt-v2v/cold/entrypoint.go index fa96f44aa..edde3e32a 100644 --- a/virt-v2v/cold/entrypoint.go +++ b/virt-v2v/cold/entrypoint.go @@ -77,7 +77,7 @@ func main() { } func buildCommand() []string { - virtV2vArgs := []string{"virt-v2v", "-v", "-x"} + virtV2vArgs := []string{"-v", "-x"} source := os.Getenv("V2V_source") if !isValidSource(source) { @@ -228,7 +228,7 @@ func LinkDisks(diskKind string, num int) (err error) { } func executeVirtV2v(args []string) error { - v2vCmd := exec.Command(args[0], args[1:]...) + v2vCmd := exec.Command("virt-v2v", args...) monitorCmd := exec.Command("/usr/local/bin/virt-v2v-monitor") monitorCmd.Stdout = os.Stdout monitorCmd.Stderr = os.Stderr