Skip to content

Commit

Permalink
fix: sanitize vlan name
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Sep 28, 2018
1 parent 9e7ae7b commit 40e8f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/FusionInventory/Agent/Tools/Hardware.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ sub _getVlans {
foreach my $suffix (sort keys %{$vmPortStatus}) {
my $port_id = _getElement($suffix, -1);
my $vlan_id = $vmPortStatus->{$suffix};
my $name = $vtpVlanName->{$vlan_id};
my $name = getSanitizedString($vtpVlanName->{$vlan_id});

push @{$results->{$port_id}}, {
NUMBER => $vlan_id,
Expand All @@ -1383,7 +1383,7 @@ sub _getVlans {
}
push @{$results->{$portnumber}}, {
NUMBER => $vlan,
NAME => $vlanIdName->{$suffix}
NAME => getSanitizedString($vlanIdName->{$suffix})
};
}
}
Expand Down

0 comments on commit 40e8f5e

Please sign in to comment.