Fixed inconsistency between vagrant-libvirt driver and packer QEMU accelerator

This commit is contained in:
lxb 2016-11-03 22:55:55 +11:00
parent ac04315710
commit 12ef9bf8af
No known key found for this signature in database
GPG Key ID: E12981400414F882
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ func (p *LibVirtProvider) Process(ui packer.Ui, artifact packer.Artifact, dir st
// Convert domain type to libvirt driver // Convert domain type to libvirt driver
var driver string var driver string
switch domainType { switch domainType {
case "kvm", "qemu": case "none", "tcg":
driver = "qemu"
case "kvm":
driver = domainType driver = domainType
default: default:
return "", nil, fmt.Errorf("Unknown libvirt domain type: %s", domainType) return "", nil, fmt.Errorf("Unknown libvirt domain type: %s", domainType)