File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
pkg/cmd/registry/rule/list Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package list
33import (
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
2122const (
22- RuleValidity = "VALIDITY "
23- RuleCompatibility = "COMPATIBILITY "
23+ RuleValidity = "validity "
24+ RuleCompatibility = "compatibility "
2425)
2526
2627const (
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 }
You can’t perform that action at this time.
0 commit comments