Fix unintended BC issues in ISO option refactoring

This commit is contained in:
Mark Peek 2015-10-26 17:39:48 -07:00
parent cdcffecc2d
commit c3d77dc5a1
2 changed files with 6 additions and 6 deletions

View File

@ -21,10 +21,10 @@ import (
const BuilderId = "transcend.qemu" const BuilderId = "transcend.qemu"
var accels = map[string]struct{}{ var accels = map[string]struct{}{
"none": {}, "none": struct{}{},
"kvm": {}, "kvm": struct{}{},
"tcg": {}, "tcg": struct{}{},
"xen": {}, "xen": struct{}{},
} }
var netDevice = map[string]bool{ var netDevice = map[string]bool{

View File

@ -497,7 +497,7 @@ func TestBuilderPrepare_QemuArgs(t *testing.T) {
// Test with a good one // Test with a good one
config["qemuargs"] = [][]interface{}{ config["qemuargs"] = [][]interface{}{
{"foo", "bar", "baz"}, []interface{}{"foo", "bar", "baz"},
} }
b = Builder{} b = Builder{}
@ -510,7 +510,7 @@ func TestBuilderPrepare_QemuArgs(t *testing.T) {
} }
expected := [][]string{ expected := [][]string{
{"foo", "bar", "baz"}, []string{"foo", "bar", "baz"},
} }
if !reflect.DeepEqual(b.config.QemuArgs, expected) { if !reflect.DeepEqual(b.config.QemuArgs, expected) {