remove explicit close

This commit is contained in:
nicholasmhughes 2023-05-11 15:39:35 -04:00
parent d9e8dfa6b4
commit 780d348bbc
No known key found for this signature in database
GPG key ID: CB87254A2EA67E01

View file

@ -5570,7 +5570,6 @@ def keyvalue(
try:
with salt.utils.files.fopen(name, "r") as fd:
file_contents = fd.readlines()
fd.close()
except FileNotFoundError as exc:
if create_if_missing:
append_if_not_found = True