From 2e2d5fde34efddc669e97c4c8af581ca2aaf3e1c Mon Sep 17 00:00:00 2001 From: Nick Hilliard Date: Sun, 10 Jul 2016 11:09:53 +0100 Subject: move ssh_no_exec exec test into exec definition --- lib/oxidized/input/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/input/ssh.rb') diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index db39a7e..8db5aa4 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -112,7 +112,7 @@ module Oxidized end def exec state=nil - state == nil ? @exec : (@exec=state) + state == nil ? @exec : (@exec=state) unless vars :ssh_no_exec end def cmd_shell(cmd, expect_re) -- cgit v1.2.1