Merge pull request #4104 from 0x6c7862/master

Fixed inconsistency between vagrant-libvirt driver and packer QEMU ac…
This commit is contained in:
Matthew Hooker 2016-11-03 14:28:31 -07:00 committed by GitHub
commit 8e11edbf40
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
var driver string
switch domainType {
case "kvm", "qemu":
case "none", "tcg":
driver = "qemu"
case "kvm":
driver = domainType
default:
return "", nil, fmt.Errorf("Unknown libvirt domain type: %s", domainType)