Explorar el Código

Remove requirement for SpecProviderID for node stats (#3418)

Matt Bolt hace 6 meses
padre
commit
503c0cdea1
Se han modificado 1 ficheros con 0 adiciones y 5 borrados
  1. 0 5
      core/pkg/nodestats/nodestats.go

+ 0 - 5
core/pkg/nodestats/nodestats.go

@@ -65,11 +65,6 @@ func (nssc *NodeStatsSummaryClient) GetNodeData() ([]*stats.Summary, error) {
 	var errs []error
 	var errs []error
 
 
 	work := func(n *clustercache.Node) *stats.Summary {
 	work := func(n *clustercache.Node) *stats.Summary {
-		if n.SpecProviderID == "" {
-			log.Warnf("node ProviderID not set, skipping for %s", n.Name)
-			return nil
-		}
-
 		connections := nssc.connectionOptions(n)
 		connections := nssc.connectionOptions(n)
 
 
 		resp, err := requestNodeData(connections, nssc.endpoint, bearerToken)
 		resp, err := requestNodeData(connections, nssc.endpoint, bearerToken)