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:
parent
987390c70a
commit
4b8e7bb060
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue