lib/aws/ec2/key_pair_collection.rb in aws-sdk-1.4.1 vs lib/aws/ec2/key_pair_collection.rb in aws-sdk-1.5.0

- old
+ new

@@ -83,12 +83,12 @@ # stringify option values options = options.inject({}) {|h,v| h[v.first] = v.last.to_s; h } response = client.send(client_method, options) options = {} - options[:fingerprint] = response.key_fingerprint - if response.respond_to?(:key_material) - options[:private_key] = response.key_material + options[:fingerprint] = response.data[:key_fingerprint] + if response[:key_material] + options[:private_key] = response.data[:key_material] end KeyPair.new(response.key_name, options) end