1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 08:42:38 +00:00

Remove empty Docker engine arguments

This commit is contained in:
Josh Curl
2016-11-21 15:18:44 -08:00
parent 4d9b2595b8
commit 1d617f1b92
2 changed files with 20 additions and 2 deletions

View File

@@ -18,6 +18,20 @@ func TestGenerateEngineOptsString(t *testing.T) {
if len(generateEngineOptsSlice(EngineOpts{})) != 0 {
t.Fail()
}
if len(generateEngineOptsSlice(EngineOpts{
Host: []string{
"",
},
})) != 0 {
t.Fail()
}
if len(generateEngineOptsSlice(EngineOpts{
LogOpts: map[string]string{
"max-file": "",
},
})) != 0 {
t.Fail()
}
testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{
Bridge: "bridge",