Skip to content

Commit

Permalink
Merge pull request appoxy#88 from jrosengren/fix-launch-instances-bug
Browse files Browse the repository at this point in the history
Fix issue created in commit 97ca145 by attempting to call blank? directly
  • Loading branch information
treeder committed May 9, 2011
2 parents d5aa270 + 722bbad commit 09f7554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ec2/ec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def launch_instances(image_id, options={})
# Otherwise, some of UserData symbols will be lost...
params['UserData'] = Base64.encode64(options[:user_data]).delete("\n").strip unless Aws::Utils.blank?(options[:user_data])
end
unless options[:block_device_mappings].blank?
unless Aws::Utils.blank?(options[:block_device_mappings])
options[:block_device_mappings].size.times do |n|
if options[:block_device_mappings][n][:virtual_name]
params["BlockDeviceMapping.#{n+1}.VirtualName"] = options[:block_device_mappings][n][:virtual_name]
Expand Down

0 comments on commit 09f7554

Please sign in to comment.