File tree Expand file tree Collapse file tree
tests/integration/modules Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments