+ Fix interface name for redhat7

This commit is contained in:
garnier-quentin 2017-03-07 14:42:01 +01:00
parent e1165820a4
commit 01b54ca013
1 changed files with 1 additions and 0 deletions

View File

@ -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);