Have deprecated commands pass on address and token helper too
This commit is contained in:
parent
cc0b430b77
commit
1cef14036f
|
@ -108,8 +108,10 @@ func (c *AuthCommand) Run(args []string) int {
|
|||
"compatability will be removed in Vault 0.11 (or later).") + "\n")
|
||||
return (&LoginCommand{
|
||||
BaseCommand: &BaseCommand{
|
||||
UI: c.UI,
|
||||
client: c.client,
|
||||
UI: c.UI,
|
||||
client: c.client,
|
||||
tokenHelper: c.tokenHelper,
|
||||
flagAddress: c.flagAddress,
|
||||
},
|
||||
Handlers: c.Handlers,
|
||||
}).Run(args)
|
||||
|
|
|
@ -36,8 +36,10 @@ func (c *PoliciesDeprecatedCommand) Run(args []string) int {
|
|||
if len(args) > 0 {
|
||||
return (&PolicyReadCommand{
|
||||
BaseCommand: &BaseCommand{
|
||||
UI: c.UI,
|
||||
client: c.client,
|
||||
UI: c.UI,
|
||||
client: c.client,
|
||||
tokenHelper: c.TokenHelper,
|
||||
flagAddress: c.flagAddress,
|
||||
},
|
||||
}).Run(oargs)
|
||||
}
|
||||
|
@ -46,8 +48,10 @@ func (c *PoliciesDeprecatedCommand) Run(args []string) int {
|
|||
// "vault policy list"
|
||||
return (&PolicyListCommand{
|
||||
BaseCommand: &BaseCommand{
|
||||
UI: c.UI,
|
||||
client: c.client,
|
||||
UI: c.UI,
|
||||
client: c.client,
|
||||
tokenHelper: c.TokenHelper,
|
||||
flagAddress: c.flagAddress,
|
||||
},
|
||||
}).Run(oargs)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue