Skip to content

Commit

Permalink
issue-1606 - Adding redirect to dev-null for error message that appea…
Browse files Browse the repository at this point in the history
…rs on some systems when running lsb_release
  • Loading branch information
numberwhun committed Oct 9, 2023
1 parent c1bfb85 commit dbdd21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Rex/Hardware/Host.pm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ sub get_operating_system {
my $is_lsb = can_run("lsb_release");

if ($is_lsb) {
if ( my $ret = i_run "lsb_release -s -i" ) {
if ( my $ret = i_run "lsb_release -s -i 2>/dev/null" ) {
if ( $ret =~ m/SUSE/i ) {
$ret = "SuSE";
}
Expand Down

0 comments on commit dbdd21f

Please sign in to comment.