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

[storage|aws] make owner setter on file idempotent

This commit is contained in:
geemus 2014-11-20 10:37:48 -06:00
parent e71df7889b
commit fca373ba4b

View file

@ -123,8 +123,8 @@ module Fog
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