From ae5ebfa98083db4b87de61778c333f6626173f68 Mon Sep 17 00:00:00 2001 From: Filip Djokic Date: Tue, 10 Dec 2024 11:40:04 +0100 Subject: [PATCH] Remove unused variable --- installer/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/installer.py b/installer/installer.py index 995697577..a2c870eaa 100644 --- a/installer/installer.py +++ b/installer/installer.py @@ -1122,7 +1122,7 @@ def setup_journal_logging(self) -> bool: logging.info("Configuring journald configuration for logging") # Modify journald template file with values specific to the installation - with open(DEFAULT_JOURNAL_CONFIG_FILE, "w") as fname: + with open(DEFAULT_JOURNAL_CONFIG_FILE, "w"): if is_valid_url(JOURNAL_TEMPLATE): with request.urlopen(JOURNAL_TEMPLATE) as response, open(DEFAULT_JOURNAL_CONFIG_FILE, "w") as file: file.write(response.read().decode("utf-8").strip())