Skip to content

Commit

Permalink
fix list of databases when databases are removed (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
posriniv authored Dec 5, 2024
1 parent bb818e3 commit 3e0bf0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import (
"github.com/yugabyte/ybm-cli/cmd/vpc"

"github.com/yugabyte/ybm-cli/internal/log"
"github.com/yugabyte/ybm-cli/internal/releases"
)

var (
Expand All @@ -65,7 +66,7 @@ var rootCmd = &cobra.Command{
if strings.HasPrefix(cmd.CommandPath(), "ybm completion") {
return
}
//releases.PrintUpgradeMessageIfNeeded()
releases.PrintUpgradeMessageIfNeeded()

},
}
Expand Down
2 changes: 1 addition & 1 deletion internal/formatter/dr.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (c *DrContext) Databases() string {
if databaseName, exists := dbIdToNameMap[databaseId]; exists {
databaseNames = append(databaseNames, databaseName)
} else {
return ""
continue
}
}
return strings.Join(databaseNames, ",")
Expand Down

0 comments on commit 3e0bf0e

Please sign in to comment.