From db06e372793fd7dc2f5907a0b538c57322d425a6 Mon Sep 17 00:00:00 2001 From: numberwhun Date: Sun, 8 Oct 2023 23:42:03 -0400 Subject: [PATCH] Add dev-null redirect to suppress error --- lib/Rex/Hardware/Host.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Rex/Hardware/Host.pm b/lib/Rex/Hardware/Host.pm index 24a37968d..b1d7590ad 100644 --- a/lib/Rex/Hardware/Host.pm +++ b/lib/Rex/Hardware/Host.pm @@ -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"; }