Skip to content

Commit c388ec3

Browse files
ndakkouneViBiOh
andauthored
Update aws/logs_monitoring_go/internal/config/secretsmanager.go
Co-authored-by: Vincent Boutour <vincent.boutour@datadoghq.com>
1 parent ceec656 commit c388ec3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

aws/logs_monitoring_go/internal/config/secretsmanager.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ func resolveFromSecretsManager(ctx context.Context, client SecretsManagerAPIClie
4848
SecretId: aws.String(arn),
4949
})
5050
if err != nil {
51-
return "", fmt.Errorf("fetching secret %s: %w", arn, err)
51+
return "", fmt.Errorf("fetching secret `%s`: %w", arn, err)
5252
}
53+
5354
if result.SecretString == nil {
54-
return "", fmt.Errorf("secret %s has no string value", arn)
55+
return "", fmt.Errorf("secret `%s` has no string value", arn)
5556
}
5657

5758
return strings.TrimSpace(*result.SecretString), nil

0 commit comments

Comments
 (0)