Skip to content

Commit

Permalink
added more parsed fields for describe_snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
apsoto committed Dec 16, 2010
1 parent 7c562e1 commit 4cc6483
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/ec2/right_ec2.rb
Expand Up @@ -1827,12 +1827,15 @@ def tagstart(name, attributes)
end
def tagend(name)
case name
when 'volumeId' then @snapshot[:aws_volume_id] = @text
when 'snapshotId' then @snapshot[:aws_id] = @text
when 'status' then @snapshot[:aws_status] = @text
when 'startTime' then @snapshot[:aws_started_at] = Time.parse(@text)
when 'progress' then @snapshot[:aws_progress] = @text
when 'item' then @result << @snapshot
when 'volumeId' then @snapshot[:aws_volume_id] = @text
when 'snapshotId' then @snapshot[:aws_id] = @text
when 'status' then @snapshot[:aws_status] = @text
when 'startTime' then @snapshot[:aws_started_at] = Time.parse(@text)
when 'progress' then @snapshot[:aws_progress] = @text
when 'description' then @snapshot[:aws_description] = @text
when 'ownerId' then @snapshot[:aws_owner] = @text
when 'volumeSize' then @snapshot[:aws_volume_size] = @text.to_i
when 'item' then @result << @snapshot
end
end
def reset
Expand Down

0 comments on commit 4cc6483

Please sign in to comment.