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

Fix behavior on existing directory

This commit is contained in:
Jarrod Johnson 2020-08-27 17:06:10 -04:00
parent e8eaddf375
commit 49eccaf68b

View File

@ -167,7 +167,7 @@ def install_tftp_content():
try:
os.makedirs(tftplocation)
except OSError as e:
if e.errno == 17:
if e.errno != 17:
raise
shutil.copy('/opt/confluent/lib/ipxe/ipxe.efi', tftplocation)
shutil.copy('/opt/confluent/lib/ipxe/ipxe.kkpxe', tftplocation)