Skip to content

Commit

Permalink
fix(flags): addon flag is not needed for logs commands
Browse files Browse the repository at this point in the history
  • Loading branch information
curzolapierre committed Jul 18, 2023
1 parent 4e89643 commit aa5c5e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

### To be Released

* chore(term): remove `github.com/andrew-d/go-termutil`, use standard library instead
* feat(cmd): addon can be retrieve from addon type, not only UUID
* feat: add database maintenance info with the new `database-maintenance-info` command
* feat: add database maintenance listing with the new `database-maintenance-list` command
* feat(addons): add maintenance windows manipulation with the new `addon-config` command
* chore(term): remove `github.com/andrew-d/go-termutil`, use standard library instead ([PR#974](https://github.com/Scalingo/cli/pull/974))
* feat(cmd): addon can be retrieve from addon type, not only UUID ([PR#983](https://github.com/Scalingo/cli/pull/983))
* feat: add database maintenance info with the new `database-maintenance-info` command ([PR#984](https://github.com/Scalingo/cli/pull/984))
* feat: add database maintenance listing with the new `database-maintenance-list` command ([PR#982](https://github.com/Scalingo/cli/pull/982))
* feat(addons): add maintenance windows manipulation with the new `addon-config` command ([PR#955](https://github.com/Scalingo/cli/pull/955))
* fix(addons): log-drains, logs and logs-archive commands was not working when addon was not given ([PR#985](https://github.com/Scalingo/cli/pull/985))

### 1.29.1

Expand Down
3 changes: 3 additions & 0 deletions cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func addonUUIDFromFlags(c *cli.Context, app string, exitIfMissing ...bool) strin
io.Error("Unable to find the addon name, please use --addon flag.")
os.Exit(1)
}
if addonName == "" {
return ""
}

var addonUUID string
var err error
Expand Down

0 comments on commit aa5c5e0

Please sign in to comment.