Skip to content

Commit 7e2de42

Browse files
committed
Fix pre-commit whoops
1 parent b32574e commit 7e2de42

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

salt/modules/localemod.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ def _localectl_set(locale=""):
125125
# container environment where D-Bus write access is unavailable). Write
126126
# /etc/locale.conf directly; modern localectl status reads from that file
127127
# without D-Bus, so get_locale() will see the change immediately.
128-
log.debug(
129-
"localectl set-locale failed; writing /etc/locale.conf directly"
130-
)
128+
log.debug("localectl set-locale failed; writing /etc/locale.conf directly")
131129
locale_conf = "/etc/locale.conf"
132130
if not __salt__["file.file_exists"](locale_conf):
133131
__salt__["file.touch"](locale_conf)

tests/integration/modules/test_localemod.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ def _check_systemctl():
1212
_check_systemctl.memo = False
1313
else:
1414
try:
15-
proc = subprocess.run(
16-
["localectl"], capture_output=True, check=False
17-
)
15+
proc = subprocess.run(["localectl"], capture_output=True, check=False)
1816
_check_systemctl.memo = (
1917
b"No such file or directory" in proc.stderr
2018
or b"Connection refused" in proc.stderr

0 commit comments

Comments
 (0)