diff --git a/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm b/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm index 9176588cb3..8a70f6fe9b 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm @@ -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 + ); } } @@ -87,5 +91,4 @@ sub _scanOffice { } } - 1;