Browse code

Remove duplicate `nat`, `null` in `docker info` for Windows

This fix tries to address the issue raised in 27695 where
duplicate `nat` and `null` has been listed in `docker info`
for Windows.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

Yong Tang authored on 2016/10/25 07:21:14
Showing 1 changed files
... ...
@@ -364,6 +364,9 @@ func (daemon *Daemon) GetNetworkDriverList() []string {
364 364
 
365 365
 	pluginList := daemon.netController.BuiltinDrivers()
366 366
 	pluginMap := make(map[string]bool)
367
+	for _, plugin := range pluginList {
368
+		pluginMap[plugin] = true
369
+	}
367 370
 
368 371
 	networks := daemon.netController.Networks()
369 372