Skip to content

Commit

Permalink
Merge remote-tracking branch 'forge/2.3.x' into 2.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Dec 9, 2012
2 parents c3ecea8 + c02cd2f commit 22d08e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/FusionInventory/Agent/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ sub _checkContent {
no-category
/) {

$self->{$option} = [ split(/,/, $self->{$option}) ];
if ($self->{$option}) {
$self->{$option} = [split(/,/, $self->{$option})];
} else {
$self->{$option} = [];
}
}

# files location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sub doInventory {

my $inventory = $params{inventory};

foreach my $device (_getDevices(logger => $params{logger})) {
foreach my $device (_getDevices(logger => $params{logger}, datadir => $params{datadir})) {
$inventory->addEntry(
section => 'USBDEVICES',
entry => $device,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sub doInventory {

my $inventory = $params{inventory};

foreach my $device (_getDevices(logger => $params{logger})) {
foreach my $device (_getDevices(logger => $params{logger}, datadir => $params{datadir})) {
$inventory->addEntry(
section => 'USBDEVICES',
entry => $device
Expand Down

0 comments on commit 22d08e2

Please sign in to comment.