Explorar o código

Merge pull request #2490 from Sean-Holcomb/sth/cc-agg-label-fix

Remove label sanitation from cloud cost agg property parsing
Sean Holcomb %!s(int64=2) %!d(string=hai) anos
pai
achega
d221a25bd0
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      core/pkg/opencost/cloudcostprops.go

+ 1 - 2
core/pkg/opencost/cloudcostprops.go

@@ -5,7 +5,6 @@ import (
 	"strings"
 
 	"github.com/opencost/opencost/core/pkg/log"
-	"github.com/opencost/opencost/core/pkg/util/promutil"
 )
 
 type CloudCostProperty string
@@ -70,7 +69,7 @@ func ParseCloudCostProperty(text string) (CloudCostProperty, error) {
 	}
 
 	if strings.HasPrefix(text, "label:") {
-		label := promutil.SanitizeLabelName(strings.TrimSpace(strings.TrimPrefix(text, "label:")))
+		label := strings.TrimSpace(strings.TrimPrefix(text, "label:"))
 		return CloudCostProperty(fmt.Sprintf("label:%s", label)), nil
 	}