Permalink
Browse files

[storage|aws] make owner setter on file idempotent

  • Loading branch information...
1 parent e71df78 commit fca373ba4bdc3b677940ce8fd23e8d1350f04811 @geemus geemus committed Nov 20, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fog/aws/models/storage/file.rb
@@ -123,8 +123,8 @@ def metadata=(new_metadata)
def owner=(new_owner)
if new_owner
attributes[:owner] = {
- :display_name => new_owner['DisplayName'],
- :id => new_owner['ID']
+ :display_name => new_owner['DisplayName'] || new_owner[:display_name],
+ :id => new_owner['ID'] || new_owner[:id]
}
end
end

0 comments on commit fca373b

Please sign in to comment.