From 4ef1683231f5de79f1508cd99f8e650856eda3a2 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 98af0ca4f..cb0ace580 100644 --- a/virt-v2v/cold/entrypoint.go +++ b/virt-v2v/cold/entrypoint.go @@ -78,7 +78,7 @@ func main() { } func buildCommand() []string { - virtV2vArgs := []string{"virt-v2v", "-v", "-x"} + virtV2vArgs := []string{"-v", "-x"} source := os.Getenv("V2V_source") if !isValidSource(source) { @@ -225,7 +225,7 @@ func LinkDisks(diskKind string, num int) (err error) { } func executeVirtV2v(source string, 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.Stderr = os.Stderr