Tiny fixes
This commit is contained in:
parent
05c7f4b9c6
commit
faf03232f4
2 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@ use open IO => ':utf8';
|
|||
use open ':std';
|
||||
|
||||
use Data::Dumper;
|
||||
use Email::MIME;
|
||||
use Exporter 'import';
|
||||
use POSIX qw(strftime);
|
||||
use Term::ANSIColor qw(:constants);
|
||||
|
@ -71,6 +70,7 @@ sub log
|
|||
|
||||
if ($mail_error && $level <= ERROR)
|
||||
{
|
||||
require Email::MIME;
|
||||
require Email::Sender::Simple;
|
||||
Email::Sender::Simple->import(qw(sendmail));
|
||||
my $mail = Email::MIME->create(
|
||||
|
|
|
@ -9,7 +9,6 @@ use File::Temp qw/tempfile tempdir/;
|
|||
use IPC::Open3;
|
||||
use XML::LibXML;
|
||||
|
||||
use ACU::LDAP;
|
||||
use ACU::Log;
|
||||
use ACU::Process;
|
||||
|
||||
|
@ -101,7 +100,7 @@ sub process_node
|
|||
my $action = $args->{param}{action} // "launch";
|
||||
|
||||
if (! exists $node_actions{$action}) {
|
||||
log WARN, "Unknown action '$action' for guantanamo node process.";
|
||||
warn "Unknown action '$action' for guantanamo node process.";
|
||||
}
|
||||
return $node_actions{$action}($args);
|
||||
}
|
||||
|
|
Reference in a new issue