Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [85] pry(main)> parsed['Reservations'][0]['Instances'][0]['BlockDeviceMappings'].each do |test|
- [85] pry(main)* volume = test['Ebs']['VolumeId']
- [85] pry(main)* end
- => [{"DeviceName"=>"/dev/sda",
- "Ebs"=>
- {"Status"=>"attached",
- "DeleteOnTermination"=>true,
- "VolumeId"=>"vol-44068e41",
- "AttachTime"=>"2014-08-01T03:48:51.000Z"}},
- {"DeviceName"=>"/dev/sdb",
- "Ebs"=>
- {"Status"=>"attached",
- "DeleteOnTermination"=>true,
- "VolumeId"=>"vol-36068e33",
- "AttachTime"=>"2014-08-01T03:48:51.000Z"}}]
- expecting ONLY VolumeId
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement