1
0
Fork 0
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:
Josh Kalderimis 2012-09-19 18:19:28 +03:00
parent 6132354b56
commit 8a4d196963

View file

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