From 52d31369f04f545912d5b6d42a93a37b58a4df52 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 3 Aug 2016 15:16:30 -0500 Subject: [PATCH] addHost.php output improvements/fixes --- addhost.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addhost.php b/addhost.php index c7ed66ccf5..8e799174df 100755 --- a/addhost.php +++ b/addhost.php @@ -169,11 +169,11 @@ if (!empty($argv[1])) { if (is_numeric($result)) { $device = device_by_id_cache($result); - echo 'Added device '.$device['hostname'].' ('.$device_id.")\n"; + echo 'Added device '.$device['hostname'].' ('.$result.")\n"; exit(0); } 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); } } else {