From 01b54ca01391e4ef59baa195b5b32870902e0ddc Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 7 Mar 2017 14:42:01 +0100 Subject: [PATCH] + Fix interface name for redhat7 --- os/linux/local/mode/listinterfaces.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/os/linux/local/mode/listinterfaces.pm b/os/linux/local/mode/listinterfaces.pm index 9db239574..c5078176c 100644 --- a/os/linux/local/mode/listinterfaces.pm +++ b/os/linux/local/mode/listinterfaces.pm @@ -69,6 +69,7 @@ sub manage_selection { command_options => $self->{option_results}->{command_options}); while ($stdout =~ /^(\S+)(.*?)(\n\n|\n$)/msg) { my ($interface_name, $values) = ($1, $2); + $interface_name =~ s/:$//; my $states = ''; $states .= 'R' if ($values =~ /RUNNING/ms); $states .= 'U' if ($values =~ /UP/ms);