aws 2.1.9 → 2.1.10

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.
Files changed (2) hide show
  1. data/lib/elb/elb_interface.rb +10 -6
  2. metadata +2 -2
@@ -169,7 +169,7 @@ module Aws
169
169
  end
170
170
 
171
171
 
172
- def describe_instance_health(name, instance_ids)
172
+ def describe_instance_health(name, instance_ids=[])
173
173
  instance_ids = [instance_ids] if instance_ids.is_a?(String)
174
174
  # @logger.info("Describing Instance Health")
175
175
  params = {}
@@ -306,16 +306,19 @@ module Aws
306
306
  end
307
307
 
308
308
  def tagstart(name, attributes)
309
- # puts 'tagstart ' + name + ' -- ' + @xmlpath
310
- if (name == 'member' && @xmlpath == 'RegisterInstancesWithLoadBalancerResult/Instances/member')
309
+ puts 'tagstart ' + name + ' -- ' + @xmlpath
310
+ if (name == 'member' && @xmlpath == 'RegisterInstancesWithLoadBalancerResponse/RegisterInstancesWithLoadBalancerResult/Instances/member')
311
311
  @member = { }
312
312
  end
313
313
 
314
314
  end
315
+
315
316
  def tagend(name)
316
317
  case name
317
318
  when 'InstanceId' then
318
319
  @member[:instance_id] = @text
320
+ when 'member' then
321
+ @result << @member
319
322
  end
320
323
  end
321
324
  #
@@ -328,8 +331,8 @@ module Aws
328
331
  end
329
332
 
330
333
  def tagstart(name, attributes)
331
- # puts 'tagstart ' + name + ' -- ' + @xmlpath
332
- if (name == 'member' && @xmlpath == 'DescribeInstanceHealthResult/InstanceStates')
334
+ puts 'tagstart ' + name + ' -- ' + @xmlpath
335
+ if (name == 'member' && @xmlpath == 'DescribeInstanceHealthResponse/DescribeInstanceHealthResult/InstanceStates')
333
336
  @member = { }
334
337
  end
335
338
  end
@@ -344,7 +347,8 @@ module Aws
344
347
  @member[:instance_id] = @text
345
348
  when 'ReasonCode' then
346
349
  @member[:reason_code] = @text
347
-
350
+ when 'member' then
351
+ @result << @member
348
352
  end
349
353
  end
350
354
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-12-02 00:00:00 -08:00
14
+ date: 2009-12-03 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency