Skip to content

Commit

Permalink
Handle user not being returned from list_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Ransom Richardson committed Sep 27, 2012
1 parent 32c35d2 commit c07d57d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/erlcloud_s3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ extract_contents(Nodes) ->
{owner, "Owner", fun extract_user/1}],
[erlcloud_xml:decode(Attributes, Node) || Node <- Nodes].

extract_user([]) ->
[];
extract_user([Node]) ->
Attributes = [{id, "ID", text},
{display_name, "DisplayName", optional_text}],
Expand Down

0 comments on commit c07d57d

Please sign in to comment.