Skip to content

Commit

Permalink
temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Mar 6, 2024
1 parent 2d0b1cd commit d52e2ad
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions internal/controllers/create_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,19 @@ func (hv *HV) CreateDomain(domID uuid.UUID, req *util.DomainCreateRequest) (err
Strs("args", args).
Msg("create domain")

out, err := exec.Command("virt-install", args...).CombinedOutput()
if err != nil {
log.Error().
Err(err).
Str("command", "virt-install").
Strs("args", args).
Str("output", string(out)).
Msg("create domain")
return err
}
/*
out, err := exec.Command("virt-install", args...).CombinedOutput()
if err != nil {
log.Error().
Err(err).
Str("command", "virt-install").
Strs("args", args).
Str("output", string(out)).
Msg("create domain")
return err
}
*/
out := "temp"
log.Debug().
Str("output", string(out)).
Msg("create domain")
Expand Down

0 comments on commit d52e2ad

Please sign in to comment.