From c6c288bb047b45ced7cc253e8ee6c4b763745125 Mon Sep 17 00:00:00 2001 From: Edward Muller Date: Wed, 23 May 2012 15:54:35 -0700 Subject: [PATCH] return '' not nil --- lib/fog/core/ssh.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/core/ssh.rb b/lib/fog/core/ssh.rb index 74112ff71..ca38cb04f 100644 --- a/lib/fog/core/ssh.rb +++ b/lib/fog/core/ssh.rb @@ -68,13 +68,13 @@ module Fog channel.on_data do |ch, data| result.stdout << data - yield [data, nil] if blk + yield [data, ''] if blk end channel.on_extended_data do |ch, type, data| next unless type == 1 result.stderr << data - yield [nil, data] if blk + yield ['', data] if blk end channel.on_request('exit-status') do |ch, data|