2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Change to emprint from raise

The exception stack trace is offputting.
This commit is contained in:
Jarrod Johnson 2020-08-28 07:18:07 -04:00
parent 49eccaf68b
commit 2aa2402b73

View File

@ -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: