From 7713a55149f4ed9d585c7a3642f9db5c45a57651 Mon Sep 17 00:00:00 2001 From: Martin Necas Date: Mon, 9 Sep 2024 14:45:16 +0200 Subject: [PATCH] Fix rebase args variable name Signed-off-by: Martin Necas --- virt-v2v/entrypoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v/entrypoint.go b/virt-v2v/entrypoint.go index da3fb033a..ff74300c1 100644 --- a/virt-v2v/entrypoint.go +++ b/virt-v2v/entrypoint.go @@ -196,7 +196,7 @@ func virtV2vVsphereArgs() (args []string, err error) { // When converting VM with name that do not meet DNS1123 RFC requirements, // it should be changed to supported one to ensure the conversion does not fail. if checkEnvVariablesSet("V2V_NewName") { - virtV2vArgs = append(virtV2vArgs, "-on", os.Getenv("V2V_NewName")) + args = append(args, "-on", os.Getenv("V2V_NewName")) nameChanged = true }