From 84ed2eb90e3e52f0389d61003cf2572c39322a4a Mon Sep 17 00:00:00 2001 From: Alexsander Silva de Souza Date: Wed, 18 Oct 2023 11:33:27 -0300 Subject: [PATCH] fix the external program invocation --- vmware-esxi/curtin/curtin-hooks | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/vmware-esxi/curtin/curtin-hooks b/vmware-esxi/curtin/curtin-hooks index 475a5ee8..8c22caff 100755 --- a/vmware-esxi/curtin/curtin-hooks +++ b/vmware-esxi/curtin/curtin-hooks @@ -31,12 +31,11 @@ from curtin.util import load_command_environment def exec_prog(*cmdline: str) -> None: - with open(os.devnull, "w") as devnull: - subprocess.check_call( - *cmdline, - stdout=devnull, - stderr=subprocess.STDOUT, - ) + subprocess.check_call( + cmdline, + stdout=subprocess.DEVNULL, + stderr=subprocess.STDOUT, + ) def write_config(target, config):