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"
var accels = map[string]struct{}{
"none": {},
"kvm": {},
"tcg": {},
"xen": {},
"none": struct{}{},
"kvm": struct{}{},
"tcg": struct{}{},
"xen": struct{}{},
}
var netDevice = map[string]bool{

View File

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