Skip to content

Commit

Permalink
config: remind user that no default account was set (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp authored Apr 23, 2024
1 parent 3b73a9d commit d32d81e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Block Storage: Show all quotas #591
- Block Storage: Fix volume show with snapshot #589
- storage presign: fix panic when parsing arg[0] #590
- config: remind user that no default account was set #593

## 1.77.1

Expand Down
4 changes: 4 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ func saveConfig(filePath string, newAccounts *account.Config) error {
}

conf.DefaultAccount = gConfig.Get("defaultAccount").(string)
if conf.DefaultAccount == "" {
fmt.Println("no default account set")
}

account.GAllAccount = conf

return nil
Expand Down

0 comments on commit d32d81e

Please sign in to comment.