mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
correct the options checking in BlueBox create_block
password and ssh_key are passed in as strings and not symbols when using servers.create(opts)
This commit is contained in:
parent
6132354b56
commit
8a4d196963
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Fog
|
|||
# * body<~Hash>:
|
||||
def create_block(product_id, template_id, location_id, options = {})
|
||||
|
||||
unless options.has_key?(:password) || options.has_key?(:ssh_key)
|
||||
unless options.has_key?('password') || options.has_key?('ssh_key')
|
||||
raise ArgumentError, 'Either password or ssh_key must be supplied'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue