Skip to content

Commit

Permalink
Minor QA on #5825 - Remove Device
Browse files Browse the repository at this point in the history
Missing test for no device enhancement
  • Loading branch information
TheWitness committed Sep 17, 2024
1 parent b0972ba commit 7c0e090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/remove_device.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
$ids_ip = array();

/* process host description */
if ($description > '') {
if ($description != '') {
if ($debug) {
print "Searching hosts by description..." . PHP_EOL;
}
Expand All @@ -148,7 +148,7 @@
}
}

if (cacti_sizeof($ids_host) == 0 && cacti_sizeof($ids_ip) == 0) {
if (cacti_sizeof($ids_host) == 0 && cacti_sizeof($ids_ip) == 0 && cacti_sizeof($ids_id) == 0) {
print "ERROR: No matches found, was IP or Description set properly?" . PHP_EOL;
exit(1);
}
Expand Down

0 comments on commit 7c0e090

Please sign in to comment.