1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2544 from rackspace/keypair_attributes

[rackspace|compute_v2] updates key_pair model to pass additional attributes
This commit is contained in:
Kyle Rames 2014-01-08 07:19:15 -08:00
commit 579aa0b696

View file

@ -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