浏览代码

Merge pull request #1764 from aboch/isadyn

Restore isAgent || n.dynamic check
Madhu Venugopal 8 年之前
父节点
当前提交
57c6fab2cc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libnetwork/network.go

+ 2 - 2
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