Skip to content

Commit

Permalink
Merge pull request #985 from Scalingo/fix/flags/addon_flag_is_not_nee…
Browse files Browse the repository at this point in the history
…ded_for_logs_commands

fix(flags): addon flag is not needed for logs commands
  • Loading branch information
curzolapierre authored Jul 18, 2023
2 parents c831feb + 9fbef33 commit 1f1382c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

### 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))

### 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 1f1382c

Please sign in to comment.