Skip to content

Commit

Permalink
v2v: hard-code command
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas authored and liranr23 committed Jun 4, 2024
1 parent 3717d27 commit 480d139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virt-v2v/cold/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -228,7 +228,7 @@ func LinkDisks(diskKind string, num int) (err error) {
}

func executeVirtV2v(args []string) (err error) {
virtV2vCmd := exec.Command(args[0], args[1:]...)
virtV2vCmd := exec.Command("virt-v2v", args...)

Check warning on line 231 in virt-v2v/cold/entrypoint.go

View check run for this annotation

Codecov / codecov/patch

virt-v2v/cold/entrypoint.go#L231

Added line #L231 was not covered by tests
r, w := io.Pipe()
virtV2vCmd.Stdout = w
virtV2vCmd.Stderr = w
Expand Down

0 comments on commit 480d139

Please sign in to comment.