Skip to content

Commit

Permalink
Merge pull request #58 from scuzhanglei/master
Browse files Browse the repository at this point in the history
Fix error nil pointer bug when driver not ok but respond
  • Loading branch information
k8s-ci-robot authored Dec 30, 2019
2 parents 8aca367 + a0714f9 commit 2afda2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/livenessprobe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (h *healthProbe) checkProbe(w http.ResponseWriter, req *http.Request) {

if !ready {
w.WriteHeader(http.StatusInternalServerError)
w.Write([]byte(err.Error()))
w.Write([]byte("driver responded but is not ready"))
klog.Error("driver responded but is not ready")
return
}
Expand Down

0 comments on commit 2afda2f

Please sign in to comment.