Skip to content

Commit

Permalink
rename function, for consistency with Generic::USB
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Nov 21, 2012
1 parent 499e31a commit 1b7d7ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/FusionInventory/Agent/Task/Inventory/Input/Win32/USB.pm
Expand Up @@ -16,15 +16,15 @@ sub doInventory {

my $inventory = $params{inventory};

foreach my $device (_getUSBDevices()) {
foreach my $device (_getDevices()) {
$inventory->addEntry(
section => 'USBDEVICES',
entry => $device
);
}
}

sub _getUSBDevices {
sub _getDevices {

my @devices;

Expand Down
2 changes: 1 addition & 1 deletion t/inventory/windows/usb.t
Expand Up @@ -101,7 +101,7 @@ foreach my $test (keys %tests) {
mockGetWMIObjects($test)
);

my @devices = FusionInventory::Agent::Task::Inventory::Input::Win32::USB::_getUSBDevices();
my @devices = FusionInventory::Agent::Task::Inventory::Input::Win32::USB::_getDevices();
is_deeply(
\@devices,
$tests{$test},
Expand Down

0 comments on commit 1b7d7ba

Please sign in to comment.