From 932e72eb839c6d248704d217b305b2d34818bd01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 3 Jul 2024 11:41:14 +0000 Subject: [PATCH] fix: stealth_stdout/stderr was ignored for plugins (fix #482) --- lib/perl/OVH/Bastion.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/perl/OVH/Bastion.pm b/lib/perl/OVH/Bastion.pm index 419856185..c3bd19710 100644 --- a/lib/perl/OVH/Bastion.pm +++ b/lib/perl/OVH/Bastion.pm @@ -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'}, @@ -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;