1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[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

View file

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