Have deprecated commands pass on address and token helper too

This commit is contained in:
Jeff Mitchell 2018-03-16 13:52:08 -04:00
parent cc0b430b77
commit 1cef14036f
2 changed files with 12 additions and 6 deletions

View File

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

View File

@ -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)
}