poolparty 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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!
|