summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-19 13:19:59 +0200
committerytti <saku@ytti.fi>2016-02-19 13:19:59 +0200
commit370d90bddd1c8c086c455175fdb88de5931a99d1 (patch)
tree8a83ff504b323443f9b4d4b891320ca3e0a2e1df
parent58e51244c10b7dcc6e82573250d592777a442aca (diff)
parentbda4514593b651fd187fd108f44a92f65d4ee677 (diff)
Merge pull request #329 from roedie/modify-sshkex
Made the vars strings
-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