Skip to content

Commit

Permalink
sandbox: stop trying to create error attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Jul 31, 2023
1 parent 4f3d940 commit eca6033
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions internal/publish/serverservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,29 +230,6 @@ func (h *serverServicePublisher) publish(ctx context.Context, device *model.Asse
return
}

// create/update server bmc error attributes - for out of band data collection
if h.config.AppKind == model.AppKindOutOfBand && len(device.Errors) > 0 {
err = h.createUpdateServerBMCErrorAttributes(
ctx,
server.UUID,
attributeByNamespace(model.ServerBMCErrorsAttributeNS, server.Attributes),
device,
)

if err != nil {
h.logger.WithFields(
logrus.Fields{
"id": id,
"err": err,
}).Warn("error in server bmc error attributes update")
}

// count devices with errors
metricInventorized.With(prometheus.Labels{"status": "failed"}).Add(1)

return
}

// count devices with no errors
metricInventorized.With(prometheus.Labels{"status": "success"}).Add(1)

Expand Down

0 comments on commit eca6033

Please sign in to comment.