mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Return the err from server correctly
This commit is contained in:
@@ -1754,7 +1754,7 @@ func (c *Client) deriveToken(alloc *structs.Allocation, taskNames []string, vcli
|
||||
var resp structs.DeriveVaultTokenResponse
|
||||
if err := c.RPC("Node.DeriveVaultToken", &req, &resp); err != nil {
|
||||
c.logger.Printf("[ERR] client.vault: DeriveVaultToken RPC failed: %v", err)
|
||||
return nil, structs.NewWrappedServerError(resp.Error)
|
||||
return nil, structs.NewWrappedServerError(err)
|
||||
}
|
||||
if resp.Error != nil {
|
||||
c.logger.Printf("[ERR] client.vault: failed to derive vault tokens: %v", resp.Error)
|
||||
|
||||
Reference in New Issue
Block a user