Skip to content

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.rb
index 1603136d57b..0da4761b13d 100644
--- a/lib/s3_inventory.rb
+++ b/lib/s3_inventory.rb
@@ -82,7 +82,7 @@ class S3Inventory
upload_id = nil
result = connection.exec("SELECT * FROM #{table_name} WHERE key LIKE '%original/%/#{sha1}%'")
- if result.count >= 0
+ if result.count >= 1
key = result[0]["key"]
data = s3_helper.object(key).data
upload_id = Upload.create!(