diff options
author | ytti <saku@ytti.fi> | 2018-05-06 11:08:20 +0100 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2018-05-06 11:08:20 +0100 |
commit | a56ae15a4c0adb0870a752c955d1319c82c627da (patch) | |
tree | f78e6996404b952c6d20ebf2bf29140e57af68f2 | |
parent | fc1b600a2d09e99d4c0d3cfb4d8c0101cc9e640f (diff) |
rubocop fixes
much value, wow, very readable
-rw-r--r-- | lib/oxidized/input/ssh.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index e58d089..3bac619 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -121,10 +121,10 @@ module Oxidized # some models have SSH auth or terminal auth based on version of code # if SSH is configured for terminal auth, we'll still try to detect prompt def login - match_re = [ @node.prompt ] + match_re = [@node.prompt] match_re << @username if @username match_re << @password if @password - until (match=expect(match_re)) == @node.prompt + until (match = expect(match_re)) == @node.prompt cmd(@node.auth[:username], nil) if match == @username cmd(@node.auth[:password], nil) if match == @password match_re.delete match |