Skip to content

Commit

Permalink
Fix a wait to account for the possiblity of a not ready unix socket
Browse files Browse the repository at this point in the history
  • Loading branch information
s1061123 committed Jan 11, 2024
1 parent 003fbd5 commit 72135d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/server/api/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ func postRequest(args *skel.CmdArgs) (*Response, string, error) {
}

var body []byte
err = utilwait.PollImmediate(APIReadyPollDuration, APIReadyPollTimeout, func() (bool, error) {
body, err = DoCNI("http://dummy/cni", cniRequest, SocketPath(multusShimConfig.MultusSocketDir))
return err == nil, nil
})
body, err = DoCNI("http://dummy/cni", cniRequest, SocketPath(multusShimConfig.MultusSocketDir))
if err != nil {
return nil, multusShimConfig.CNIVersion, err
}
Expand Down

0 comments on commit 72135d0

Please sign in to comment.