Merge pull request #1300 from cpuguy83/fix_bridge_ep_panic

Fix panic calling `ep` instead of `endpoint`
This commit is contained in:
Alessandro Boch 2016-06-27 11:08:14 -07:00 committed by GitHub
commit 37d8df2b0b

View file

@ -1020,7 +1020,7 @@ func (d *driver) CreateEndpoint(nid, eid string, ifInfo driverapi.InterfaceInfo,
}
if err = d.storeUpdate(endpoint); err != nil {
return fmt.Errorf("failed to save bridge endpoint %s to store: %v", ep.id[0:7], err)
return fmt.Errorf("failed to save bridge endpoint %s to store: %v", endpoint.id[0:7], err)
}
return nil