fix: only update components if data exists in cimc entity-physical discovery

This commit is contained in:
laf
2016-11-01 00:05:53 +00:00
parent e362f057b7
commit e2abd5ed60

View File

@@ -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