vm guest relation to host

Bug #1152596 reported by Frank
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: OCSReports
Fix Released
Low
Arthur Jaouen

Bug Description

The source for this problem relies in an sql-statement and code which expects only one result with a hostname, in my situation an empty one or an old esx-host. So I modified

[code]plugins/main_sections/ms_computer/ms_computer.php[/code] in line 205 from

[code]$sqlVM = "select vm.hardware_id,vm.vmtype, h.name from virtualmachines vm left join hardware h on vm.hardware_id=h.id where vm.uuid='%s'";[/code]

to

[code]$sqlVM = "select vm.hardware_id,vm.vmtype, h.name from virtualmachines vm left join hardware h on vm.hardware_id=h.id where
 vm.uuid='%s'order by h.name DESC";[/code]

Hope this helps.

Arthur Jaouen (arthur-z)
Changed in ocsinventory-ocsreports:
assignee: Erwan (airoine) → Arthur Jaouen (arthur-z)
Arthur Jaouen (arthur-z)
Changed in ocsinventory-ocsreports:
status: New → In Progress
status: In Progress → Fix Committed
Arthur Jaouen (arthur-z)
Changed in ocsinventory-ocsreports:
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.