1
0
mirror of https://github.com/rancher/os.git synced 2025-09-26 13:13:02 +00:00

Allow question marks in unquoted kernel parameters

This commit is contained in:
Josh Curl
2017-01-04 16:34:40 -08:00
committed by Sven Dowideit
parent 4155dee5fa
commit 80820e610a
2 changed files with 10 additions and 7 deletions

View File

@@ -148,15 +148,15 @@ func TestParseCmdline(t *testing.T) {
assert.Equal(map[interface{}]interface{}{
"rancher": map[interface{}]interface{}{
"strArray": []interface{}{"url:http://192.168.1.100/cloud-config"},
"strArray": []interface{}{"url:http://192.168.1.100/cloud-config?a=b"},
},
}, parseCmdline("rancher.strArray=[\"url:http://192.168.1.100/cloud-config\"]"))
}, parseCmdline("rancher.strArray=[\"url:http://192.168.1.100/cloud-config?a=b\"]"))
assert.Equal(map[interface{}]interface{}{
"rancher": map[interface{}]interface{}{
"strArray": []interface{}{"url:http://192.168.1.100/cloud-config"},
"strArray": []interface{}{"url:http://192.168.1.100/cloud-config?a=b"},
},
}, parseCmdline("rancher.strArray=[url:http://192.168.1.100/cloud-config]"))
}, parseCmdline("rancher.strArray=[url:http://192.168.1.100/cloud-config?a=b]"))
}
func TestGet(t *testing.T) {