Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Fixed files with gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
soleo committed Mar 27, 2015
1 parent 1e6e855 commit cab844f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion drivers/drivers.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Driver interface {

// PostCreateCheck allows for checking the creation of driver met the configuration we specified
PostCreateCheck() error

// Remove a host
Remove() error

Expand Down
18 changes: 9 additions & 9 deletions drivers/virtualbox/virtualbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ func (d *Driver) PostCreateCheck() error {
}
return vminfoerr
}

reMemorySize := regexp.MustCompile(`(?m)^memory=(\w+)`)
realMemorySize := reMemorySize.FindStringSubmatch(vminfostdout)
log.Infof("Real Memory Size: %s", realMemorySize[1])
log.Infof("Real Memory Size: %s", realMemorySize[1])
memSize, e := strconv.Atoi(realMemorySize[1])
if e != nil {
return e
}
if e != nil {
return e
}

if memSize != d.Memory {
log.Warnf("Mismatched Memory Size.")
Expand All @@ -197,11 +197,11 @@ func (d *Driver) PostCreateCheck() error {

reDiskSize := regexp.MustCompile(`(?m)^Capacity:(.*)MBytes`)
realDiskSize := reDiskSize.FindStringSubmatch(hdinfostdout)
log.Infof("Real HD Disk Size: %s", strings.TrimSpace(realDiskSize[1]))
log.Infof("Real HD Disk Size: %s", strings.TrimSpace(realDiskSize[1]))
diskSize, e := strconv.Atoi(strings.TrimSpace(realDiskSize[1]))
if e != nil {
return e
}
if e != nil {
return e
}
if diskSize != d.DiskSize {
log.Warnf("Mismatched Disk Size.")
}
Expand Down
1 change: 1 addition & 0 deletions drivers/vmwarevsphere/vsphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (d *Driver) PreCreateCheck() error {
func (d *Driver) PostCreateCheck() error {
return nil
}

// the current implementation does the following:
// 1. check whether the docker directory contains the boot2docker ISO
// 2. generate an SSH keypair and bundle it in a tar.
Expand Down

0 comments on commit cab844f

Please sign in to comment.