mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a64c9357ca
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>
(cherry picked from commit
|
||
---|---|---|
.. | ||
httputils | ||
middleware | ||
router | ||
middleware.go | ||
profiler.go | ||
router_swapper.go | ||
server.go | ||
server_test.go |