changed error string referring to 'ova' and 'ovf' to refer to 'qcow2' and 'img' as the former were stray leftovers from the virtualbox code used as a basis for this plugin.

This commit is contained in:
Tom Hite 2013-09-03 20:13:45 -05:00
parent 37f64c9541
commit ba1ca4d2fb
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ func (b *Builder) Prepare(raws ...interface{}) error {
if !(b.config.Format == "qcow2" || b.config.Format == "raw") { if !(b.config.Format == "qcow2" || b.config.Format == "raw") {
errs = packer.MultiErrorAppend( errs = packer.MultiErrorAppend(
errs, errors.New("invalid format, only 'ovf' or 'ova' are allowed")) errs, errors.New("invalid format, only 'qcow2' or 'img' are allowed"))
} }
if !(b.config.Accelerator == "kvm" || b.config.Accelerator == "xen") { if !(b.config.Accelerator == "kvm" || b.config.Accelerator == "xen") {