mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added add and remove parents for device from the V0 API * Fixed some minors errors (white spaces and lack of them, an unnecesary else) * Added missing } * Reducing cognitive complexity * Further reduced cognitive complexity and added a check if parent device existed (it blew up when it did not) * Refactored the code and fixed bugs (that i created) when deviceIds or parentIds where nonexistent * Fixed } not on a new line issue * Empty space removed * Deleted lines added by mistake to composer.json * removed a comma that broke composer.json * added the missing element in composer.json * Added optional ids to del_parents_fom_host Updated del_parents_from_host() so it can accept parent(s) id(s) to delete, if none given it deletes all it's parents. * Fixing code issues on del_parents_from_host Refactored and solved small issues with del_parents_from_host * Refactored code del_parents_from_host Refactored del_parents_from_host() in order to comply with the projects standard * Added one space Added missing whitespace * refactoring for better readability
80 KiB
80 KiB