mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-07 03:03:08 +00:00
Sprinkle some LANG/LC_* where command output is parsed (#2019)
This commit is contained in:
committed by
Matt Clay
parent
8913f1a11d
commit
0fb01e45fb
3
lib/ansible/modules/extras/packaging/os/homebrew.py
Normal file → Executable file
3
lib/ansible/modules/extras/packaging/os/homebrew.py
Normal file → Executable file
@@ -813,6 +813,9 @@ def main():
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C')
|
||||
|
||||
p = module.params
|
||||
|
||||
if p['name']:
|
||||
|
||||
3
lib/ansible/modules/extras/packaging/os/homebrew_cask.py
Normal file → Executable file
3
lib/ansible/modules/extras/packaging/os/homebrew_cask.py
Normal file → Executable file
@@ -481,6 +481,9 @@ def main():
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C')
|
||||
|
||||
p = module.params
|
||||
|
||||
if p['name']:
|
||||
|
||||
2
lib/ansible/modules/extras/system/svc.py
Normal file → Executable file
2
lib/ansible/modules/extras/system/svc.py
Normal file → Executable file
@@ -249,6 +249,8 @@ def main():
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C')
|
||||
|
||||
state = module.params['state']
|
||||
enabled = module.params['enabled']
|
||||
downed = module.params['downed']
|
||||
|
||||
Reference in New Issue
Block a user