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

[joyent|compute] Fixes issue where params are not properly passed to #keys_create

from #create_key
This commit is contained in:
Kevin Chan 2012-04-09 21:40:54 +08:00
parent 987390c70a
commit 4b8e7bb060

View file

@ -22,8 +22,8 @@ module Fog
end
def create(params = {})
raise ArgumentError, "Key name required" unless params.key?(:name)
raise ArgumentError, "Key body required" unless params.key?(:body)
raise ArgumentError, "option [name] required" unless params.key?(:name)
raise ArgumentError, "option [key] required" unless params.key?(:key)
self.connection.create_key(params)
end