Skip to content

Commit

Permalink
return error when secret manager pull fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kendavis2 committed Jan 13, 2020
1 parent 9a72c22 commit 2ab6223
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/store/aws_secret_manager_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ func (s AWSSecretManagerStore) Pull(file *catalog.File, version string) ([]byte,
SecretId: aws.String(key),
})

if err != nil {
return []byte{}, contract.Attributes{}, err
}

switch file.Type {
case "json":
return []byte(*sv.SecretString), contract.Attributes{}, err
Expand Down

0 comments on commit 2ab6223

Please sign in to comment.