This commit is contained in:
Mitchell Hashimoto 2014-10-28 08:43:19 -07:00
parent 98a52c296c
commit 06144cf287
6 changed files with 14 additions and 14 deletions

View File

@ -29,7 +29,7 @@ func (p *LibVirtProvider) Process(ui packer.Ui, artifact packer.Artifact, dir st
format := artifact.State("diskType").(string)
origSize := artifact.State("diskSize").(uint64)
size := origSize / 1024 // In MB, want GB
if origSize % 1024 > 0 {
if origSize%1024 > 0 {
// Make sure we don't make the size smaller
size++
}