amazonwebservices/aws-sdk-for-ruby — pull request #24 by abrody (2011-12-13 00:30:11+00:00)
Title: Handle nil output in AWS::EC2::Instance#console_output

Freshly started instances don't yet have console output available, in which case the current code passes nil to Base64::decode64. This commit makes console_output return nil instead.

```
>> i.console_output
NoMethodError: undefined method `unpack' for nil:NilClass
from /usr/lib/ruby/1.8/base64.rb:59:in `decode64'
from /var/lib/gems/1.8/gems/aws-sdk-1.2.4/lib/aws/ec2/instance.rb:470:in `console_output'
from (irb):27
from :0
```