From e2f7db5549301ae2fbf06463d33660df6fe4bd09 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Thu, 14 Feb 2019 05:56:30 +0530 Subject: [PATCH] Fix typo --- lib/s3_inventory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/s3_inventory.rb b/lib/s3_inventory.rb index 3d9a5596f94..ee7dab3d74e 100644 --- a/lib/s3_inventory.rb +++ b/lib/s3_inventory.rb @@ -136,7 +136,7 @@ class S3Inventory @s3_helper.download_file(symlink_file.key, filename, failure_message) File.readlines(filename).map do |key| - key = key.sub("s3://#{bucket_name}/").sub("\n", "") + key = key.sub("s3://#{bucket_name}/", "").sub("\n", "") { key: key, filename: File.join(tmp_directory, File.basename(key)) } end end