Skip to content

Commit

Permalink
chore: fixed resource type casing
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendible committed Aug 1, 2024
1 parent fe2ee84 commit 75bcc43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/renderers/report_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (rd *ReportData) RecommendationsTable() [][]string {
"Azure Service Category / Well-Architected Area", "Azure Service / Well-Architected Topic", "Resiliency Category", "Recommendation",
"Impact", "Best Practices Guidance", "Read More", "Recommendation Id"}
rows := [][]string{}
for t, rt := range rd.Recomendations {
for _, rt := range rd.Recomendations {
for _, r := range rt {
implemented := counter[r.RecommendationID] == 0
source := "APRL"
Expand All @@ -260,7 +260,7 @@ func (rd *ReportData) RecommendationsTable() [][]string {

categoryPart := ""
servicePart := ""
typeParts := strings.Split(t, "/")
typeParts := strings.Split(r.ResourceType, "/")
categoryPart = typeParts[0]
if len(typeParts) > 1 {
servicePart = typeParts[1]
Expand Down

0 comments on commit 75bcc43

Please sign in to comment.