Fix authz flag (#787)
* Fix authz flag * add changelog bug fix for authz flag Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
This commit is contained in:
1 parent
a37ba007f2
commit
a7fca44809
2 files changed
+11
-6
No files matched your search
@@ -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 == "" ||
|
||||
|
||||
Reference in new issue
Block a user