[aws|storage] fix flipped logic on valid acl check

closes #889
This commit is contained in:
geemus 2012-05-03 17:42:52 -05:00
parent 568d290ca9
commit 835255df96
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ module Fog
attribute :creation_date, :aliases => 'CreationDate'
def acl=(new_acl)
if VALID_ACLS.include?(new_acl)
unless VALID_ACLS.include?(new_acl)
raise ArgumentError.new("acl must be one of [#{VALID_ACLS.join(', ')}]")
else
@acl = new_acl