mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix unmarshal error in endpoint interface
Instead of passing the pointer to &ep.iface the current code is passing the value. So the source variable is not getting updated properly. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
0e078d2671
commit
bb6449bedb
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ func (ep *endpoint) UnmarshalJSON(b []byte) (err error) {
|
|||
ep.id = epMap["id"].(string)
|
||||
|
||||
ib, _ := json.Marshal(epMap["ep_iface"])
|
||||
json.Unmarshal(ib, ep.iface)
|
||||
json.Unmarshal(ib, &ep.iface)
|
||||
|
||||
tb, _ := json.Marshal(epMap["exposed_ports"])
|
||||
var tPorts []types.TransportPort
|
||||
|
|
Loading…
Add table
Reference in a new issue