Skip to content

A platform for community discussion. Free, open, simple.

Fix typo

Vinoth Kannane2f7db554930
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