poolparty 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/cloud_providers/ec2/ec2.rb +10 -7
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -248,13 +248,16 @@ module CloudProviders
|
|
248
248
|
# with the id given will be returned
|
249
249
|
# if not given, details for all instances will be returned
|
250
250
|
def describe_instances(id=nil)
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
251
|
+
begin
|
252
|
+
@describe_instances = ec2.describe_instances.reservationSet.item.map do |r|
|
253
|
+
r.instancesSet.item.map do |i|
|
254
|
+
inst_options = i.merge(r.merge(:cloud => cloud)).merge(cloud.cloud_provider.dsl_options)
|
255
|
+
Ec2Instance.new(inst_options)
|
256
|
+
end
|
257
|
+
end.flatten
|
258
|
+
rescue Exception => e
|
259
|
+
[]
|
260
|
+
end
|
258
261
|
end
|
259
262
|
|
260
263
|
# Extras!
|