rename clashing import

This commit is contained in:
Ed Maxwell-Lyte 2019-01-09 16:30:54 +00:00
parent 4437f8d8ba
commit e8e92fe6c6
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ package common
import (
"bytes"
"fmt"
"github.com/hashicorp/go-version"
versionUtil "github.com/hashicorp/go-version"
"log"
"os/exec"
"regexp"
@ -27,16 +27,16 @@ func (d *VBox42Driver) CreateSATAController(vmName string, name string, portcoun
portCountArg := "--portcount"
currentVersion, err := version.NewVersion(version)
currentVersion, err := versionUtil.NewVersion(version)
if err != nil {
return err
}
versionUsingPortCount, err := version.NewVersion("4.3")
firstVersionUsingPortCount, err := versionUtil.NewVersion("4.3")
if err != nil {
return err
}
if currentVersion.LessThan(versionUsingPortCount) {
if currentVersion.LessThan(firstVersionUsingPortCount) {
portCountArg = "--sataportcount"
}