Skip to content

Commit

Permalink
Trust the endpoint state if we have a valid sandbox-id
Browse files Browse the repository at this point in the history
Signed-off-by: Madhu Venugopal <[email protected]>
  • Loading branch information
mavenugo committed Feb 2, 2017
1 parent 5e7857a commit 4dd1d9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions endpoint_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ type tableEntry struct {
}

func (ep *endpoint) Info() EndpointInfo {
if ep.sandboxID != "" {
return ep
}
n, err := ep.getNetworkFromStore()
if err != nil {
return nil
Expand Down

0 comments on commit 4dd1d9c

Please sign in to comment.