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 CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 4
3
- :patch: 2
3
+ :patch: 3
4
4
  :major: 1
5
5
  :build:
@@ -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
- @describe_instances = ec2.describe_instances.reservationSet.item.map do |r|
252
- r.instancesSet.item.map do |i|
253
- inst_options = i.merge(r.merge(:cloud => cloud)).merge(cloud.cloud_provider.dsl_options)
254
- Ec2Instance.new(inst_options)
255
- end
256
- end.flatten
257
- # id.nil? ? @describe_instances : @describe_instances.select {|a| a.instance_id == id }.first
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!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poolparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Lerner