Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly clean up --config-only networks
The endpoint count for --config-only networks was being incremented even when the respective --config-from inherited network failed to create a network This was due to a variable shadowing problem with err causing the deferred function to not execute correctly. Using the same err variable across the entire function fixes the issue Fixes: moby/moby#35101 Signed-off-by: Arko Dasgupta <[email protected]> (cherry picked from commit eacb56d) Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information