SHOW:
|
|
- or go back to the newest paste.
1 | - | [93] pry(main)> parsed['Reservations'][0]['Instances'][0]['BlockDeviceMappings'].map do |test| |
1 | + | [104] pry(main)> parsed['Reservations'][0]['Instances'][0]['BlockDeviceMappings'] |
2 | - | [93] pry(main)* volume = test.map {test['Ebs']['VolumeId']} |
2 | + | => [{"DeviceName"=>"/dev/sda", |
3 | - | [93] pry(main)* end |
3 | + | "Ebs"=> |
4 | - | => [["vol-44068e41", "vol-44068e41"], ["vol-36068e33", "vol-36068e33"]] |
4 | + | {"Status"=>"attached", |
5 | "DeleteOnTermination"=>true, | |
6 | "VolumeId"=>"vol-44068e41", | |
7 | "AttachTime"=>"2014-08-01T03:48:51.000Z"}}, | |
8 | {"DeviceName"=>"/dev/sdb", | |
9 | "Ebs"=> | |
10 | {"Status"=>"attached", | |
11 | "DeleteOnTermination"=>true, | |
12 | "VolumeId"=>"vol-36068e33", | |
13 | "AttachTime"=>"2014-08-01T03:48:51.000Z"}}] |