Skip to content

Commit

Permalink
Fail when md5 checksum doesn't match downloaded file (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Crossen <[email protected]>
  • Loading branch information
scottcrossen and Scott Crossen authored May 19, 2021
1 parent 0d807a9 commit 7973189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ func getAnsibleRepository(runDir string) error {
}
err = idempotentFileDownload(downloader, remoteHttpURL, localCacheFile)
} else if s3Obj != "" {
downloader, err := createS3Downloader(s3ConnectionRegion)
if err != nil {
downloader, createError := createS3Downloader(s3ConnectionRegion)
if createError != nil {
return errors.Wrap(err, "unable to pull Ansible repo")
}
err = idempotentFileDownload(downloader, s3Obj, localCacheFile)
Expand Down

0 comments on commit 7973189

Please sign in to comment.