code tidy, remove redundant and potential error prone check
@@ -118,14 +118,6 @@ func (d *DataFeedAggregateTask) buildDatafeed(ctx context.Context, nodeIDs map[s
log.Errorf("Error getting node data %v", err)
continue
}
- if automatic, ok := nodeData["attributes"].(map[string]interface{})["automatic"]; ok {
- ipaddress := automatic.(map[string]interface{})["ipaddress"].(string)
-
- if ip != ipaddress {
- log.Errorf("Error node ip address %s and attributes ip address %s mismatch", ip, ipaddress)
- continue
- }
- }
report, err := d.getNodeComplianceData(ctx, ip, nodeID, updatedNodesOnly)
if err != nil {
