Skip to content

Commit 1bdea26

Browse files
committed
Remove delete=False
We can remove it because the statements that use the temporary file were moved inside the "with" block.
1 parent 0814d26 commit 1bdea26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/oscap-im

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def add_eval_args(args, cmd):
105105

106106

107107
def pre_scan_fix(args):
108-
with tempfile.NamedTemporaryFile(delete=False) as remediation_script:
108+
with tempfile.NamedTemporaryFile() as remediation_script:
109109
gen_fix_cmd = [
110110
"oscap", "xccdf", "generate", "fix", "--fix-type", "bootc",
111111
"--output", remediation_script.name]

0 commit comments

Comments
 (0)