From 58a2939718195c01722545e60b5d6c5c2777aa48 Mon Sep 17 00:00:00 2001 From: Reinier Schoof Date: Fri, 25 Sep 2015 10:48:36 +0200 Subject: cleaned up conditional --- lib/oxidized/input/telnet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/input/telnet.rb') diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb index f8adb4f..cedcd88 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -19,7 +19,7 @@ module Oxidized opt['Output_log'] = CFG.input.debug?.to_s + '-telnet' if CFG.input.debug? @telnet = Net::Telnet.new opt - if !@node.auth[:username].nil? and @node.auth[:username].length > 0 + if @node.auth[:username] and @node.auth[:username].length > 0 expect username @telnet.puts @node.auth[:username] end -- cgit v1.2.1