Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added more parsed fields for describe_snapshots

  • Loading branch information...
commit 634290b6f9231eb4fed39b7a57ada5099f76b679 1 parent 27943bd
Alex Soto apsoto authored

Showing 1 changed file with 9 additions and 6 deletions. Show diff stats Hide diff stats

  1. +9 6 lib/ec2/right_ec2.rb
15 lib/ec2/right_ec2.rb
@@ -1817,12 +1817,15 @@ def tagstart(name, attributes)
1817 1817 end
1818 1818 def tagend(name)
1819 1819 case name
1820   - when 'volumeId' then @snapshot[:aws_volume_id] = @text
1821   - when 'snapshotId' then @snapshot[:aws_id] = @text
1822   - when 'status' then @snapshot[:aws_status] = @text
1823   - when 'startTime' then @snapshot[:aws_started_at] = Time.parse(@text)
1824   - when 'progress' then @snapshot[:aws_progress] = @text
1825   - when 'item' then @result << @snapshot
  1820 + when 'volumeId' then @snapshot[:aws_volume_id] = @text
  1821 + when 'snapshotId' then @snapshot[:aws_id] = @text
  1822 + when 'status' then @snapshot[:aws_status] = @text
  1823 + when 'startTime' then @snapshot[:aws_started_at] = Time.parse(@text)
  1824 + when 'progress' then @snapshot[:aws_progress] = @text
  1825 + when 'description' then @snapshot[:aws_description] = @text
  1826 + when 'ownerId' then @snapshot[:aws_owner] = @text
  1827 + when 'volumeSize' then @snapshot[:aws_volume_size] = @text.to_i
  1828 + when 'item' then @result << @snapshot
1826 1829 end
1827 1830 end
1828 1831 def reset

0 comments on commit 634290b

Please sign in to comment.
Something went wrong with that request. Please try again.