mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix issue probably-meant-fstring found at https://codereview.doctor
This commit is contained in:
parent
b9b0c2462b
commit
21bdb366e5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue