Skip to content

Commit

Permalink
fix missing curly brace; run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jacdavi committed Jun 27, 2024
1 parent 379c4bf commit 0324916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/minimega/kvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ func (vm *KvmVM) Save(filename string) error {

for d, devi := range device {
if d > 0 {
filename = fmt.Sprintf("%s.%s",filename,strconv.Itoa(d))
filename = fmt.Sprintf("%s.%s", filename, strconv.Itoa(d))
//Appending drive number if there are multiple drives.
}
log.Info("Saving disk %s to %s", devi, filename)
Expand All @@ -620,6 +620,7 @@ func (vm *KvmVM) Save(filename string) error {
}
time.Sleep(time.Second * 1)
}
}

return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/minimega/vm_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ func cliVMMigrate(ns *Namespace, c *minicli.Command, resp *minicli.Response) err
if err := vm.Save(fname); err != nil {
return err
}

//Saving memory/migrate
fname = fmt.Sprintf("%s.migrate", fname)

Expand Down

0 comments on commit 0324916

Please sign in to comment.