Ipmi.pm does not load Net::IP at the right place

Bug #1159742 reported by Terje Marthinussen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Low
Frank

Bug Description

[Mon Mar 25 19:18:45 2013][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Ipmi
[Mon Mar 25 19:18:46 2013][debug] runWithTimeout(): unexpected error: Undefined subroutine &Ocsinventory::Agent::Backend::OS::Generic::Ipmi::ip_iptobin called at /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Backend/OS/Generic/Ipmi.pm line 55.

from Ipmi.pm:
  my $binip = &ip_iptobin ($ipaddress, 4);
  my $binmask = &ip_iptobin ($ipmask, 4);
  my $binsubnet = $binip & $binmask;
  if (can_load("Net::IP qw(:PROC)")) {
      $ipsubnet = ip_bintoip($binsubnet, 4);
  }

Net::IP needs to be loaded before the ip_iptobin part?

mortheres (mortheres)
Changed in ocsinventory-unix-agent:
assignee: nobody → mortheres (mortheres)
importance: Undecided → Medium
Revision history for this message
Frank (frank-bourdeau) wrote :

Hi

Have you always this problem?

Please let us know.

Regards

Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
status: New → Fix Committed
assignee: mortheres (mortheres) → Frank (frank-bourdeau)
importance: Medium → Low
Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
milestone: none → 2.2rc1
Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.