-
-
Notifications
You must be signed in to change notification settings - Fork 427
Description
Hey Guys
I came across the following issue
When using the remove_device.php CLI script if you remove a device by name in my case test the script comes back with multiple results and goes on the delete the results see below
php remove_device.php --description=test
PHP Notice: Undefined variable: debug in /var/www/html/cacti/cli/remove_device.php on line 106
id | host | description
276 | IP | test
277 | IP | test10
Removing devices with ids: 276, 277
Success - removed device-ids: 276, 277
Now test and test10 did have the same IP but I wouldn't think that would be a factor since we are doing a check based on the description
I also got the following backtrace in the log
2020-09-01 14:54:27 - CMDPHP PHP ERROR NOTICE Backtrace: (/cli/remove_device.php[106]:CactiErrorHandler())
2020-09-01 14:54:27 - ERROR PHP NOTICE: Undefined variable: debug in file: /var/www/html/cacti/cli/remove_device.php on line: 106
I am going to test this on 1.2.14 but based on the commit history on this script I believe it will be the same result