Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #87 from riobard/gofmt
Browse files Browse the repository at this point in the history
Ran `gofmt`
  • Loading branch information
riobard committed Apr 9, 2014
2 parents d4d83dd + d73c2b4 commit 408532a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,18 @@ func cmdInit() int {
return 1
}

if B2D.VMDK != "" {
logf("Using %v as base VMDK", B2D.VMDK)
if err := copyDiskImage(diskImg, B2D.VMDK); err != nil {
logf("Failed to copy disk image %v from %v: %s", diskImg, B2D.VMDK, err)
return 1
}
} else {
if err := makeDiskImage(diskImg, B2D.DiskSize); err != nil {
logf("Failed to create disk image %q: %s", diskImg, err)
return 1
}
}
if B2D.VMDK != "" {
logf("Using %v as base VMDK", B2D.VMDK)
if err := copyDiskImage(diskImg, B2D.VMDK); err != nil {
logf("Failed to copy disk image %v from %v: %s", diskImg, B2D.VMDK, err)
return 1
}
} else {
if err := makeDiskImage(diskImg, B2D.DiskSize); err != nil {
logf("Failed to create disk image %q: %s", diskImg, err)
return 1
}
}
}

if err := m.AttachStorage("SATA", vbx.StorageMedium{Port: 1, Device: 0, DriveType: vbx.DriveHDD, Medium: diskImg}); err != nil {
Expand Down

0 comments on commit 408532a

Please sign in to comment.