mirror of https://github.com/hashicorp/consul
Removes unnecessary nil check for loginData
parent
9c4c3c50f0
commit
7282078993
|
@ -72,9 +72,6 @@ func (g *AWSLoginDataGenerator) GenerateLoginData(authMethod *structs.VaultAuthM
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("aws auth failed to generate login data: %w", err)
|
||||
}
|
||||
if loginData == nil {
|
||||
return nil, fmt.Errorf("got nil response from GenerateLoginData")
|
||||
}
|
||||
|
||||
// If a Vault role name is specified, we need to manually add this
|
||||
role, ok := authMethod.Params["role"]
|
||||
|
|
Loading…
Reference in New Issue