Skip to content

Commit caf5f73

Browse files
committed
sdn: handle error from JSON marshal at pod setup
1 parent d61ffa1 commit caf5f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/network/node/pod.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (m *podManager) processRequest(request *cniserver.PodRequest) *cniserver.Po
303303
ipamResult, runningPod, err := m.podHandler.setup(request)
304304
if ipamResult != nil {
305305
result.Response, err = json.Marshal(ipamResult)
306-
if result.Err == nil {
306+
if err == nil {
307307
m.runningPods[pk] = runningPod
308308
if m.ovs != nil {
309309
m.updateLocalMulticastRulesWithLock(runningPod.vnid)

0 commit comments

Comments
 (0)