Commit 8d7d0cdb authored by David Oppenheimer's avatar David Oppenheimer Committed by GitHub

Merge pull request #27841 from davidopp/sched1

Small fix to #27838
parents 48f2b11c 57141a66
......@@ -137,7 +137,7 @@ func removeLabelOffNode(c *client.Client, nodeName string, labelKey string) {
framework.ExpectNoError(err)
By("verifying the node doesn't have the label " + labelKey)
if nodeUpdated.Labels == nil || len(nodeUpdated.Labels[labelKey]) != 0 {
if nodeUpdated.Labels != nil && len(nodeUpdated.Labels[labelKey]) != 0 {
framework.Failf("Failed removing label " + labelKey + " of the node " + nodeName)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment