Permalink
Browse files

added more parsed fields for describe_snapshots

  • Loading branch information...
apsoto committed Dec 13, 2010
1 parent 27943bd commit 634290b6f9231eb4fed39b7a57ada5099f76b679
Showing with 9 additions and 6 deletions.
  1. +9 −6 lib/ec2/right_ec2.rb
View
@@ -1817,12 +1817,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

0 comments on commit 634290b

Please sign in to comment.