moby--moby/api/server
Yong Tang 05a831a775 Fix incorrect `Scope` in `network ls/inspect` with duplicate network names
This fix tries to address the issue raised in 30242 where the `Scope`
field always changed to `swarm` in the ouput of `docker network ls/inspect`
when duplicate networks name exist.

The reason for the issue was that `buildNetworkResource()` use network name
(which may not be unique) to check for the scope.

This fix fixes the issue by always use network ID in `buildNetworkResource()`.

A test has been added. The test fails before the fix and passes after the fix.

This fix fixes 30242.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-01-25 09:39:55 -08:00
..
httputils Merge pull request #28631 from likel/master 2016-12-30 01:13:12 +01:00
middleware Revise swarm init/update flags, add unlocking capability 2016-11-09 16:09:00 -08:00
router Fix incorrect `Scope` in `network ls/inspect` with duplicate network names 2017-01-25 09:39:55 -08:00
middleware.go
profiler.go
router_swapper.go
server.go Move UAStringKey to dockerversion pkg 2016-12-26 18:53:22 -08:00
server_test.go