summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/ssh.rb
diff options
context:
space:
mode:
authorroedie <github@roedie.nl>2016-02-19 11:40:33 +0100
committerroedie <github@roedie.nl>2016-02-19 11:40:33 +0100
commitbda4514593b651fd187fd108f44a92f65d4ee677 (patch)
tree8a83ff504b323443f9b4d4b891320ca3e0a2e1df /lib/oxidized/input/ssh.rb
parent58e51244c10b7dcc6e82573250d592777a442aca (diff)
Made the vars strings
Tested, and is even better.
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r--lib/oxidized/input/ssh.rb4
1 files changed, 2 insertions, 2 deletions
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