From bf733b75d5554cfc4ed2236ccd0e034af64f73b7 Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Fri, 21 Aug 2015 16:46:29 -0700 Subject: [PATCH] Revert "By default, Qemu will now have an extension added based on the file format. This is a change to more closely match behavior from 0.7.5." This reverts commit 55fadd96bccc3d762ca93cbc4d12b27f6117e196. --- builder/qemu/builder.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/builder/qemu/builder.go b/builder/qemu/builder.go index 39984d68b..4ac22b59b 100644 --- a/builder/qemu/builder.go +++ b/builder/qemu/builder.go @@ -201,13 +201,12 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { b.config.VNCPortMax = 6000 } - if b.config.Format == "" { - b.config.Format = "qcow2" + if b.config.VMName == "" { + b.config.VMName = fmt.Sprintf("packer-%s", b.config.PackerBuildName) } - if b.config.VMName == "" { - b.config.VMName = fmt.Sprintf("packer-%s.%s", - b.config.PackerBuildName, b.config.Format) + if b.config.Format == "" { + b.config.Format = "qcow2" } if b.config.FloppyFiles == nil {