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

Correct the Blue Box create_block method to check for ssh_public_key, not public_key

This commit is contained in:
Josh Kalderimis 2012-12-07 12:00:04 +13:00
parent 11591b3ed9
commit 66a3ca69e6

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?('public_key')
unless options.has_key?('password') || options.has_key?('ssh_public_key')
raise ArgumentError, 'Either password or public_key must be supplied'
end