Browse Source

Merge pull request #328 from wulonghui/wulonghui-patch-3

Update error return in bridge driver's getNetwork
Jana Radhakrishnan 10 năm trước cách đây
mục cha
commit
ce88039f44
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libnetwork/drivers/bridge/bridge.go

+ 1 - 1
libnetwork/drivers/bridge/bridge.go

@@ -453,7 +453,7 @@ func (d *driver) getNetwork(id types.UUID) (*bridgeNetwork, error) {
 		return nw, nil
 	}
 
-	return nil, nil
+	return nil, types.NotFoundErrorf("network not found: %s", id)
 }
 
 func parseNetworkGenericOptions(data interface{}) (*networkConfiguration, error) {