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:
parent
49eccaf68b
commit
2aa2402b73
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user