# File lib/fog/aws/models/compute/spot_request.rb, line 74 def key_pair=(new_keypair) self.key_name = new_keypair && new_keypair.name end