Selaa lähdekoodia

Hotfix: check the length of entrypoint before comparing.

Guillaume J. Charmes 12 vuotta sitten
vanhempi
commit
71d2ff4946
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      utils.go

+ 2 - 1
utils.go

@@ -20,7 +20,8 @@ func CompareConfig(a, b *Config) bool {
 	if len(a.Cmd) != len(b.Cmd) ||
 	if len(a.Cmd) != len(b.Cmd) ||
 		len(a.Dns) != len(b.Dns) ||
 		len(a.Dns) != len(b.Dns) ||
 		len(a.Env) != len(b.Env) ||
 		len(a.Env) != len(b.Env) ||
-		len(a.PortSpecs) != len(b.PortSpecs) {
+		len(a.PortSpecs) != len(b.PortSpecs) ||
+		len(a.Entrypoint) != len(b.Entrypoint) {
 		return false
 		return false
 	}
 	}