Skip to content

Commit

Permalink
fix: stealth_stdout/stderr was ignored for plugins (fix #482)
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Jul 3, 2024
1 parent 3ba789e commit 932e72e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/perl/OVH/Bastion.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,8 @@ sub build_ttyrec_cmdline_part1of2 {
push @ttyrec, '-v' if $params{'debug'};
push @ttyrec, '-T', 'always' if $params{'tty'};
push @ttyrec, '-T', 'never' if $params{'notty'};
push @ttyrec, '--stealth-stdout' if $params{'stealth_stdout'};
push @ttyrec, '--stealth-stderr' if $params{'stealth_stderr'};

my $fnret = OVH::Bastion::account_config(
account => $params{'account'},
Expand Down Expand Up @@ -1201,9 +1203,6 @@ sub build_ttyrec_cmdline_part2of2 {
}
}

push @cmd, '--stealth-stdout' if $params{'stealth_stdout'};
push @cmd, '--stealth-stderr' if $params{'stealth_stderr'};

my $ttyrecAdditionalParameters = OVH::Bastion::config('ttyrecAdditionalParameters')->value;
push @cmd, @$ttyrecAdditionalParameters if @$ttyrecAdditionalParameters;

Expand Down

0 comments on commit 932e72e

Please sign in to comment.