mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-04-02 16:57:43 +00:00
Merge pull request #134 from CaoShuFeng/trival
return an error when error happens in SetConditions()
This commit is contained in:
@@ -93,7 +93,7 @@ func (c *nodeProblemClient) SetConditions(newConditions []api.NodeCondition) err
|
||||
}
|
||||
patch, err := generatePatch(newConditions)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
return c.client.Patch(api.StrategicMergePatchType).Resource("nodes").Name(c.nodeName).SubResource("status").Body(patch).Do().Error()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user