mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: only update components if data exists in cimc entity-physical discovery
This commit is contained in:
@@ -590,7 +590,9 @@ if (is_null($tblUCSObjects)) {
|
||||
$component->deleteComponent($key);
|
||||
}
|
||||
}
|
||||
// Write the Components back to the DB.
|
||||
$component->setComponentPrefs($device['device_id'], $components);
|
||||
echo "\n";
|
||||
if (is_array($components)) {
|
||||
// Write the Components back to the DB.
|
||||
$component->setComponentPrefs($device['device_id'], $components);
|
||||
echo "\n";
|
||||
}
|
||||
} // End if not error
|
||||
|
Reference in New Issue
Block a user