From 21bdb366e58b83159e38ea825119b15d6d1f5148 Mon Sep 17 00:00:00 2001 From: code-review-doctor Date: Sun, 24 Apr 2022 17:25:18 +0100 Subject: [PATCH] Fix issue probably-meant-fstring found at https://codereview.doctor --- salt/modules/mount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/mount.py b/salt/modules/mount.py index 869c6f2016d..d2937877bc8 100644 --- a/salt/modules/mount.py +++ b/salt/modules/mount.py @@ -1924,7 +1924,7 @@ def set_filesystems( except OSError: raise CommandExecutionError("File not writable {}".format(config)) except Exception as exc: - raise CommandExecutionError("set_filesystems error exception {exc}") + raise CommandExecutionError(f"set_filesystems error exception {exc}") return ret @@ -1973,7 +1973,7 @@ def rm_filesystems(name, device, config="/etc/filesystems"): except OSError as exc: raise CommandExecutionError("Couldn't write to {}: {}".format(config, exc)) except Exception as exc: - raise CommandExecutionError("rm_filesystems error exception {exc}") + raise CommandExecutionError(f"rm_filesystems error exception {exc}") return modified