Fix linting issues

This commit is contained in:
Juan Mesa 2020-04-21 19:20:45 +02:00
parent 0fca4a8ba8
commit e6dbbe454e
1 changed files with 2 additions and 2 deletions

View File

@ -338,11 +338,11 @@ func funcGenAwsSecrets(ctx *Context) interface{} {
// roles.
client, err := awssmapi.New()
if err != nil {
return "", errors.New(fmt.Sprintf("Error getting AWS Secrets Manager client: %s", err))
return "", fmt.Errorf("Error getting AWS Secrets Manager client: %s", err)
}
secret, err := client.GetSecret(name)
if err != nil {
return "", errors.New(fmt.Sprintf("Error getting secret: %s", err))
return "", fmt.Errorf("Error getting secret: %s", err)
}
return secret, nil
}