Skip to content

Commit

Permalink
bug fix related to downloading profiles from S3
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Kufro committed Aug 4, 2021
1 parent 5116840 commit bd35692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lambda_function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def handle_s3_profile(event)
exit 1
end

profile_download_path = '/tmp/inspec-profile.zip'
profile_download_path = "/tmp/inspec-profile#{key.end_with?('.zip') ? '.zip' : '.tar.gz'}"
$logger.info("Downloading InSpec profile to #{profile_download_path}")
s3_client = Aws::S3::Client.new
s3_client.get_object({ bucket: bucket, key: key }, target: profile_download_path)
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.0
0.13.1

0 comments on commit bd35692

Please sign in to comment.