Commit 99d15abf authored by Matthew Baker's avatar Matthew Baker

adding allowed values for accelerator

parent 5814b9d3
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment