Skip to content

Commit

Permalink
wrap long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Nov 7, 2012
1 parent 9392708 commit 2b5cb26
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@ sub doInventory {

# TODO: 64/32 bit support
my $machKey = $Registry->Open('LMachine', {
Access => KEY_READ ## no critic (ProhibitBitwise)
}) or $params{logger}->error("Can't open HKEY_LOCAL_MACHINE key: $EXTENDED_OS_ERROR");
Access => KEY_READ ## no critic (ProhibitBitwise)
}) or $params{logger}->error(
"Can't open HKEY_LOCAL_MACHINE key: $EXTENDED_OS_ERROR"
);

my $office =
$machKey->{"SOFTWARE/Microsoft/Office"};
my $office = $machKey->{"SOFTWARE/Microsoft/Office"};

my @found;

_scanOffice($office, \@found);

foreach my $license (@found) {
$params{inventory}->addEntry(section => 'LICENSEINFOS', entry => $license);
$params{inventory}->addEntry(
section => 'LICENSEINFOS',
entry => $license
);
}

}
Expand Down Expand Up @@ -87,5 +91,4 @@ sub _scanOffice {
}
}


1;

0 comments on commit 2b5cb26

Please sign in to comment.