A platform for community discussion. Free, open, simple.
Fix typo in condition value.
Vinoth Kannanf5a217be92dd
diff --git a/lib/s3_inventory.rb b/lib/s3_inventory.rbindex 1603136d57b..0da4761b13d 100644--- a/lib/s3_inventory.rb+++ b/lib/s3_inventory.rb@@ -82,7 +82,7 @@ class S3Inventoryupload_id = nilresult = connection.exec("SELECT * FROM #{table_name} WHERE key LIKE '%original/%/#{sha1}%'")- if result.count >= 0+ if result.count >= 1key = result[0]["key"]data = s3_helper.object(key).dataupload_id = Upload.create!(