lib/nephophobia/compute.rb in nephophobia-0.0.6 vs lib/nephophobia/compute.rb in nephophobia-0.0.7
- old
+ new
@@ -38,10 +38,11 @@
# }
def all filter = {}
response = @client.action "DescribeInstances", filter
- Nephophobia.coerce(response.body['DescribeInstancesResponse']['reservationSet']['item']).collect do |data|
+ item = response.body['DescribeInstancesResponse']['reservationSet']['item']
+ Nephophobia.coerce(item).collect do |data|
ComputeData.new data
end
end
##