From 49eccaf68b70abd713e1549f49b1edd4f1a1ad88 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 27 Aug 2020 17:06:10 -0400 Subject: [PATCH] Fix behavior on existing directory --- confluent_server/bin/osdeploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index 4f26771c..bea9a3fc 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -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)