mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix in endpoint Info() method
- Make sure to return the proper value for the EndpointInfo interface in case of nil implementer Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
parent
8b079865c7
commit
d778845791
1 changed files with 5 additions and 1 deletions
|
@ -159,7 +159,11 @@ func (ep *endpoint) Info() EndpointInfo {
|
|||
return ep
|
||||
}
|
||||
|
||||
return sb.getEndpoint(ep.ID())
|
||||
if epi := sb.getEndpoint(ep.ID()); epi != nil {
|
||||
return epi
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ep *endpoint) DriverInfo() (map[string]interface{}, error) {
|
||||
|
|
Loading…
Reference in a new issue