From bda4514593b651fd187fd108f44a92f65d4ee677 Mon Sep 17 00:00:00 2001 From: roedie Date: Fri, 19 Feb 2016 11:40:33 +0100 Subject: Made the vars strings Tested, and is even better. --- lib/oxidized/input/ssh.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/oxidized/input') diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index 63d1067..7ffdd36 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -34,8 +34,8 @@ module Oxidized :number_of_password_prompts => 0, :proxy => proxy } - ssh_opts[:encryption] = vars(:ssh_encryption) if vars(:ssh_encryption) - ssh_opts[:kex] = vars(:ssh_kex) if vars(:ssh_kex) + ssh_opts[:kex] = vars(:ssh_kex).split(/,\s*/) if vars(:ssh_kex) + ssh_opts[:encryption] = vars(:ssh_encryption).split(/,\s*/) if vars(:ssh_encryption) @ssh = Net::SSH.start(@node.ip, @node.auth[:username], ssh_opts) unless @exec -- cgit v1.2.1