From 785ef1786ca39d28bfd92e3ab2cf551f1a635285 Mon Sep 17 00:00:00 2001 From: Jana Radhakrishnan Date: Wed, 16 Sep 2015 13:54:29 -0700 Subject: [PATCH] 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 --- endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoint.go b/endpoint.go index a8b3acd..fd5f7b6 100644 --- a/endpoint.go +++ b/endpoint.go @@ -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