From 08d8cfa00f2a1455bee2850a7a1afd9dc87e8651 Mon Sep 17 00:00:00 2001 From: Alessandro Boch Date: Thu, 18 May 2017 12:19:16 -0700 Subject: [PATCH] Restore isAgent || n.dynamic check - This got mistakenly changed by 254d082cc305b Signed-off-by: Alessandro Boch --- libnetwork/network.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnetwork/network.go b/libnetwork/network.go index 5fcca95fc4..05eb23c6e3 100644 --- a/libnetwork/network.go +++ b/libnetwork/network.go @@ -911,8 +911,8 @@ func (n *network) driver(load bool) (driverapi.Driver, error) { if n.scope == "" && cap != nil { n.scope = cap.DataScope } - if isAgent && n.dynamic { - // If we are running in agent mode and the network + if isAgent || n.dynamic { + // If we are running in agent mode or the network // is dynamic, then the networks are swarm scoped // regardless of the backing driver. n.scope = datastore.SwarmScope