From 0f5ab695a815f5c1e67c9cdf007917772a8b7f5b 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/BUILD.bazel | 2 +- virt-v2v/entrypoint.go | 2 +- virt-v2v/testdata/{valid_config.xml => valid_config.yml} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename virt-v2v/testdata/{valid_config.xml => valid_config.yml} (100%) diff --git a/virt-v2v/BUILD.bazel b/virt-v2v/BUILD.bazel index 4eb4a4af5..6cf4c5af7 100644 --- a/virt-v2v/BUILD.bazel +++ b/virt-v2v/BUILD.bazel @@ -97,7 +97,7 @@ go_library( "customize-rhel.go", "embed-tool.go", "entrypoint.go", - "xml-reader.go", + "yaml-reader.go", ], embedsrcs = [ "scripts/windows/9999-restore_config.ps1", 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 } diff --git a/virt-v2v/testdata/valid_config.xml b/virt-v2v/testdata/valid_config.yml similarity index 100% rename from virt-v2v/testdata/valid_config.xml rename to virt-v2v/testdata/valid_config.yml