mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
addHost.php output improvements/fixes
This commit is contained in:
@@ -169,11 +169,11 @@ if (!empty($argv[1])) {
|
|||||||
|
|
||||||
if (is_numeric($result)) {
|
if (is_numeric($result)) {
|
||||||
$device = device_by_id_cache($result);
|
$device = device_by_id_cache($result);
|
||||||
echo 'Added device '.$device['hostname'].' ('.$device_id.")\n";
|
echo 'Added device '.$device['hostname'].' ('.$result.")\n";
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print $console_color->convert("%rWe couldn't add this device:\n" . $result . "%n\n");
|
print $console_color->convert("%rWe couldn't add this device:\n " . $result . "%n\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user