go fmt
This commit is contained in:
parent
2655cf7493
commit
4f6a207441
|
@ -47,8 +47,8 @@ func (s *StepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
} else {
|
} else {
|
||||||
log.Println("No existing virtual harddrive, not attaching.")
|
log.Println("No existing virtual harddrive, not attaching.")
|
||||||
}
|
}
|
||||||
|
|
||||||
vhdPath := state.Get("packerVhdTempDir").(string)
|
vhdPath := state.Get("packerVhdTempDir").(string)
|
||||||
// convert the MB to bytes
|
// convert the MB to bytes
|
||||||
ramSize := int64(s.RamSize * 1024 * 1024)
|
ramSize := int64(s.RamSize * 1024 * 1024)
|
||||||
diskSize := int64(s.DiskSize * 1024 * 1024)
|
diskSize := int64(s.DiskSize * 1024 * 1024)
|
||||||
|
|
|
@ -218,7 +218,7 @@ if ($harddrivePath){
|
||||||
`
|
`
|
||||||
var ps powershell.PowerShellCmd
|
var ps powershell.PowerShellCmd
|
||||||
err := ps.Run(script, vmName, path, harddrivePath, vhdRoot, strconv.FormatInt(ram, 10), strconv.FormatInt(diskSize, 10), switchName)
|
err := ps.Run(script, vmName, path, harddrivePath, vhdRoot, strconv.FormatInt(ram, 10), strconv.FormatInt(diskSize, 10), switchName)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue