Skip to content

Commit 8dbca10

Browse files
committed
fix: change table cells to lowercase
1 parent 50db4d8 commit 8dbca10

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pkg/cmd/registry/rule/list/list.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package list
33
import (
44
"context"
55
"net/http"
6+
"strings"
67

78
"github.com/redhat-developer/app-services-cli/pkg/cmd/registry/registrycmdutil"
89
"github.com/redhat-developer/app-services-cli/pkg/cmd/registry/rule/rulecmdutil"
@@ -19,13 +20,13 @@ import (
1920
)
2021

2122
const (
22-
RuleValidity = "VALIDITY"
23-
RuleCompatibility = "COMPATIBILITY"
23+
RuleValidity = "validity"
24+
RuleCompatibility = "compatibility"
2425
)
2526

2627
const (
27-
RuleDisabled = "DISABLED"
28-
RuleEnabled = "ENABLED"
28+
RuleDisabled = "disabled"
29+
RuleEnabled = "enabled"
2930
)
3031

3132
// ruleRow is the details of a Service Registry rules needed to print to a table
@@ -168,10 +169,10 @@ func runList(opts *options) error {
168169
}
169170

170171
for _, rule := range enabledRules {
171-
if rule == RuleValidity {
172+
if strings.EqualFold(string(rule), RuleValidity) {
172173
validityRuleStatus.Status = RuleEnabled
173174
}
174-
if rule == RuleCompatibility {
175+
if strings.EqualFold(string(rule), RuleCompatibility) {
175176
compatibilityRuleStatus.Status = RuleEnabled
176177
}
177178
}

0 commit comments

Comments
 (0)