diff --git a/lib/fog/rackspace/models/compute_v2/key_pair.rb b/lib/fog/rackspace/models/compute_v2/key_pair.rb index 28b5c9a54..b0041408f 100644 --- a/lib/fog/rackspace/models/compute_v2/key_pair.rb +++ b/lib/fog/rackspace/models/compute_v2/key_pair.rb @@ -33,7 +33,7 @@ module Fog # @raise [Fog::Compute::RackspaceV2::ServiceError] def save requires :name - data = service.create_keypair(name, public_key) + data = service.create_keypair(name, attributes) merge_attributes(data.body['keypair']) data.body['keypair']['name'] == name end