This commit is contained in:
Vijaya Bhaskar Reddy Kondreddi 2017-10-11 22:10:39 +05:30
parent 2655cf7493
commit 4f6a207441
2 changed files with 3 additions and 3 deletions

View File

@ -47,8 +47,8 @@ func (s *StepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
} else {
log.Println("No existing virtual harddrive, not attaching.")
}
vhdPath := state.Get("packerVhdTempDir").(string)
vhdPath := state.Get("packerVhdTempDir").(string)
// convert the MB to bytes
ramSize := int64(s.RamSize * 1024 * 1024)
diskSize := int64(s.DiskSize * 1024 * 1024)

View File

@ -218,7 +218,7 @@ if ($harddrivePath){
`
var ps powershell.PowerShellCmd
err := ps.Run(script, vmName, path, harddrivePath, vhdRoot, strconv.FormatInt(ram, 10), strconv.FormatInt(diskSize, 10), switchName)
if err != nil {
return err
}