From 2aa2402b734fc235c0d1859f1f843ef2dd57e0e6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 28 Aug 2020 07:18:07 -0400 Subject: [PATCH] Change to emprint from raise The exception stack trace is offputting. --- confluent_server/bin/osdeploy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index bea9a3fc..395db284 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -157,7 +157,8 @@ def install_tftp_content(): tftplocation = cand break if not tftplocation: - raise Exception('Unable to detect an installed tftp location (check that tftp server is installed)') + emprint('Unable to detect a directory for tftp content (check that tftp server is installed)') + return 1 if os.path.exists('/usr/lib/systemd/system/tftp.socket'): subprocess.check_call(['systemctl', 'enable', 'tftp.socket', '--now']) else: