mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: os type and group not being set (#5357)
This commit is contained in:
committed by
Neil Lathwood
parent
5ad8fd3c0c
commit
b3f6218359
@@ -22,16 +22,13 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) {
|
||||
|
||||
$device = device_by_id_cache($vars['device']);
|
||||
$attribs = get_dev_attribs($device['device_id']);
|
||||
load_os($device);
|
||||
|
||||
$entity_state = get_dev_entity_state($device['device_id']);
|
||||
|
||||
// print_r($entity_state);
|
||||
$pagetitle[] = $device['hostname'];
|
||||
|
||||
if ($config['os'][$device['os']]['group']) {
|
||||
$device['os_group'] = $config['os'][$device['os']]['group'];
|
||||
}
|
||||
|
||||
echo '<div class="panel panel-default">';
|
||||
echo '<table class="device-header-table" style="margin: 0px 7px 7px 7px;" cellspacing="0" class="devicetable" width="99%">';
|
||||
require 'includes/device-header.inc.php';
|
||||
|
Reference in New Issue
Block a user