lib/ec2_tools/ec2.rb in ec2_tools-0.3.1 vs lib/ec2_tools/ec2.rb in ec2_tools-0.3.2

- old
+ new

@@ -3,12 +3,12 @@ class Ec2Tools::EC2 < AWS::EC2::Base def servers unless @servers @servers = {} describe_instances.reservationSet.item.each do |reservation| - reservation.instanceSet.item.each do |instance| + reservation.instancesSet.item.each do |instance| if instance.instanceState.name == "running" - key = instnacekeyName.to_sym + key = instance.keyName.to_sym @servers[key] = [] if @servers[key].nil? @servers[key] << instance end end end