Skip to content

Commit

Permalink
sdn: handle error from JSON marshal at pod setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbw committed Nov 28, 2017
1 parent d61ffa1 commit caf5f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/node/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (m *podManager) processRequest(request *cniserver.PodRequest) *cniserver.Po
ipamResult, runningPod, err := m.podHandler.setup(request)
if ipamResult != nil {
result.Response, err = json.Marshal(ipamResult)
if result.Err == nil {
if err == nil {
m.runningPods[pk] = runningPod
if m.ovs != nil {
m.updateLocalMulticastRulesWithLock(runningPod.vnid)
Expand Down

0 comments on commit caf5f73

Please sign in to comment.