Skip to content

Commit

Permalink
Merge pull request #301 from civo/Region_List_Cmd
Browse files Browse the repository at this point in the history
Resolved case sensitive issue for region list command
  • Loading branch information
satakshigarg authored Feb 3, 2023
2 parents 30153ee + d6083ee commit 1c31475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/region/region_list.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package region

import (
"strings"

"github.com/civo/cli/common"
"github.com/civo/cli/config"
"github.com/civo/cli/utility"
Expand Down Expand Up @@ -47,7 +49,7 @@ Example: civo region ls -o custom -f "Code: Name (Region)"`,
defaultLabel = utility.BoolToYesNo(region.Default)
} else {
if config.Current.Meta.DefaultRegion != "" {
if region.Code == config.Current.Meta.DefaultRegion {
if strings.ToLower(region.Code) == strings.ToLower(config.Current.Meta.DefaultRegion) {
defaultLabel = "<====="
}
} else {
Expand Down

0 comments on commit 1c31475

Please sign in to comment.