From 23efe69fc32de46b69acf76bf78b557a87107d13 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Sat, 23 Apr 2016 20:17:13 +0200 Subject: [PATCH] + fix option smtp --- storage/emc/symmetrix/dmx34/local/mode/hardware.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/emc/symmetrix/dmx34/local/mode/hardware.pm b/storage/emc/symmetrix/dmx34/local/mode/hardware.pm index be3fcab6d..f2667401b 100644 --- a/storage/emc/symmetrix/dmx34/local/mode/hardware.pm +++ b/storage/emc/symmetrix/dmx34/local/mode/hardware.pm @@ -131,7 +131,7 @@ sub read_files { sub send_email { my ($self, %options) = @_; - + ####### # Check SMTP options return if (!((defined($self->{option_results}->{email_warning}) && $self->{option_results}->{email_warning} ne '') @@ -154,7 +154,7 @@ sub send_email { if (defined($self->{option_results}->{email_smtp_username}) && defined($self->{option_results}->{email_smtp_password})) { $smtp_options{-pass} = $self->{option_results}->{email_smtp_password}; } - foreach my $option (@{$self->{option_results}->{smtp_options}}) { + foreach my $option (@{$self->{option_results}->{email_smtp_options}}) { next if ($option !~ /^(.+?)=(.+)$/); $smtp_options{-$1} = $2; }