From 99d15abfd2ba2afe49201f51c2039cdeedea16ce Mon Sep 17 00:00:00 2001 From: Matthew Baker Date: Thu, 7 Aug 2014 02:51:24 -0700 Subject: [PATCH] adding allowed values for accelerator --- builder/qemu/builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/qemu/builder.go b/builder/qemu/builder.go index 248f4a5a2..a3ea940c1 100644 --- a/builder/qemu/builder.go +++ b/builder/qemu/builder.go @@ -250,9 +250,9 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { errs, errors.New("invalid format, only 'qcow2' or 'raw' are allowed")) } - if !(b.config.Accelerator == "kvm" || b.config.Accelerator == "xen") { + if !(b.config.Accelerator == "kvm" || b.config.Accelerator == "xen" || b.config.Accelerator == "none") { errs = packer.MultiErrorAppend( - errs, errors.New("invalid format, only 'kvm' or 'xen' are allowed")) + errs, errors.New("invalid format, only 'kvm' or 'xen' or 'none' are allowed")) } if _, ok := netDevice[b.config.NetDevice]; !ok {