LIO: followup: shorter stderr/out logging

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2018-08-02 14:41:37 +02:00
parent ccdf8ddbda
commit ff69c66022

View File

@ -54,15 +54,8 @@ my $execute_remote_command = sub {
$timeout = 10 if !$timeout;
my $output = sub {
my $line = shift;
$msg .= "$line\n";
};
my $errfunc = sub {
my $line = shift;
$err .= "$line";
};
my $output = sub { $msg .= "$_[0]\n" };
my $errfunc = sub { $err .= "$_[0]\n" };
$target = 'root@' . $scfg->{portal};
$cmd = [@ssh_cmd, '-i', "$id_rsa_path/$scfg->{portal}_id_rsa", $target, '--', $remote_command, @params];
@ -97,15 +90,8 @@ my $read_config = sub {
$timeout = 10 if !$timeout;
my $output = sub {
my $line = shift;
$msg .= "$line\n";
};
my $errfunc = sub {
my $line = shift;
$err .= "$line";
};
my $output = sub { $msg .= "$_[0]\n" };
my $errfunc = sub { $err .= "$_[0]\n" };
$target = 'root@' . $scfg->{portal};