nodecontroller: remove unused ready event recording
It's not nodecontroller setting the node to Ready so it's impossible to reach this condition. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
		| @@ -612,9 +612,6 @@ func (nc *NodeController) monitorNodeStatus() error { | |||||||
| 			} | 			} | ||||||
|  |  | ||||||
| 			// Report node events. | 			// Report node events. | ||||||
| 			if readyCondition.Status == api.ConditionTrue && lastReadyCondition.Status != api.ConditionTrue { |  | ||||||
| 				nc.recordNodeEvent(node, "ready") |  | ||||||
| 			} |  | ||||||
| 			if readyCondition.Status == api.ConditionFalse && lastReadyCondition.Status != api.ConditionFalse { | 			if readyCondition.Status == api.ConditionFalse && lastReadyCondition.Status != api.ConditionFalse { | ||||||
| 				nc.recordNodeEvent(node, "not_ready") | 				nc.recordNodeEvent(node, "not_ready") | ||||||
| 			} | 			} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Federico Simoncelli
					Federico Simoncelli