Fix driver CPU inconsistency

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2016-06-13 16:06:08 -07:00
parent 3dd8466ca8
commit c9e8a87a3b
1 changed files with 3 additions and 4 deletions

View File

@ -44,7 +44,6 @@ type Driver struct {
CPU int
ISO string
Boot2DockerURL string
CPUS int
SSHPassword string
ConfigDriveISO string
@ -56,7 +55,7 @@ const (
defaultSSHUser = B2DUser
defaultSSHPass = B2DPass
defaultDiskSize = 20000
defaultCpus = 1
defaultCPU = 1
defaultMemory = 1024
)
@ -80,7 +79,7 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
EnvVar: "FUSION_CPU_COUNT",
Name: "vmwarefusion-cpu-count",
Usage: "number of CPUs for the machine (-1 to use the number of CPUs available)",
Value: defaultCpus,
Value: defaultCPU,
},
mcnflag.IntFlag{
EnvVar: "FUSION_MEMORY_SIZE",
@ -116,7 +115,7 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
func NewDriver(hostName, storePath string) drivers.Driver {
return &Driver{
CPUS: defaultCpus,
CPU: defaultCPU,
Memory: defaultMemory,
DiskSize: defaultDiskSize,
SSHPassword: defaultSSHPass,