Skip to content
Browse files

Merge branch 'update-describe-snapshots' of https://github.com/apsoto…

…/aws into apsoto-update-describe-snapshots
  • Loading branch information...
2 parents 214e64e + 4cc6483 commit 6be5b40b1dd214d5aeb35e2e06420e3599e52d35 @treeder treeder committed
Showing with 9 additions and 6 deletions.
  1. +9 −6 lib/ec2/right_ec2.rb
View
15 lib/ec2/right_ec2.rb
@@ -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

0 comments on commit 6be5b40

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