mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
nmcli: set C locale when executing nmcli (#992)
* Set C locale when calling nmcli. * Add changelog.
This commit is contained in:
2
changelogs/fragments/992-nmcli-locale.yml
Normal file
2
changelogs/fragments/992-nmcli-locale.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- "nmcli - set ``C`` locale when executing ``nmcli`` (https://github.com/ansible-collections/community.general/issues/989)."
|
||||||
@@ -1760,6 +1760,7 @@ def main():
|
|||||||
),
|
),
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
)
|
)
|
||||||
|
module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C')
|
||||||
|
|
||||||
if not HAVE_DBUS:
|
if not HAVE_DBUS:
|
||||||
module.fail_json(msg=missing_required_lib('dbus'), exception=DBUS_IMP_ERR)
|
module.fail_json(msg=missing_required_lib('dbus'), exception=DBUS_IMP_ERR)
|
||||||
|
|||||||
Reference in New Issue
Block a user