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:
parent
e71df7889b
commit
fca373ba4b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue