Fix authz flag (#787)

* Fix authz flag

* add changelog bug fix for authz flag

Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
pull/777/head^2
Jeff Malnick 6 years ago committed by GitHub
parent a37ba007f2
commit a7fca44809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,8 @@ Canonical reference for changes, improvements, and bugfixes for Boundary.
* ui: Fix grant string corruption on updates
([Issue](https://github.com/hashicorp/boundary/issues/757))
([PR](https://github.com/hashicorp/boundary-ui/pull/356))
* controller, cli: Fix mutual exclusivity bug with using -authz-token on `boundary connect`
([PR](https://github.com/hashicorp/boundary/pull/787))
## v0.1.1

@ -257,12 +257,15 @@ func (c *Command) Run(args []string) (retCode int) {
}
switch {
case c.flagAuthzToken != "" && c.flagTargetId != "":
c.UI.Error(`-target-id and -authz-token cannot both be specified`)
return 1
case c.flagAuthzToken != "" && c.flagTargetName != "":
c.UI.Error(`-target-name and -authz-token cannot both be specified`)
return 1
case c.flagAuthzToken != "":
switch {
case c.flagTargetId != "":
c.UI.Error(`-target-id and -authz-token cannot both be specified`)
return 1
case c.flagTargetName != "":
c.UI.Error(`-target-name and -authz-token cannot both be specified`)
return 1
}
default:
if c.flagTargetId == "" &&
(c.flagTargetName == "" ||

Loading…
Cancel
Save