lib/sys_watchdog/main.rb in sys_watchdog-0.1.19 vs lib/sys_watchdog/main.rb in sys_watchdog-0.1.20

- old
+ new

@@ -30,13 +30,13 @@ Slack.configure do |config| config.token = @conf.slack_token end end if @conf.smtp_server - _conf = @conf + conf_ = @conf Mail.defaults do - delivery_method :smtp, address: _conf.smtp_server, port: 587, :domain => _conf.smtp_domain, + delivery_method :smtp, address: conf_.smtp_server, port: 587, :domain => conf_.smtp_domain, :enable_starttls_auto => true, :openssl_verify_mode => 'none' end end end @@ -68,10 +68,10 @@ raise "Conf file #{conf_file} must have uid/gid set to root or to current running uid/gid. Aborting." end end def run_test test, after_restore: false - new_status, exitstatus, output = test.run + new_status, _exitstatus, output = test.run notify_output_change test, output return if new_status == test.status test.status = new_status