adding allowed values for accelerator

This commit is contained in:
Matthew Baker 2014-08-07 02:51:24 -07:00
parent 5814b9d3c7
commit 99d15abfd2
1 changed files with 2 additions and 2 deletions

View File

@ -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 {