Skip to content

Commit

Permalink
Fix lang issue on zypper absent (#1175)
Browse files Browse the repository at this point in the history
* Fix lang issue on zypper absent

* Add fragment changelog

* Update changelogs/fragments/1175-zypper-absent-lang.yml

Some outfit

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
  • Loading branch information
xenlo and felixfontein authored Oct 27, 2020
1 parent 8670eff commit 4842f67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/1175-zypper-absent-lang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- zypper - force ``LANG=C`` to as zypper is looking in XML output where attribute could be translated (https://github.com/ansible-collections/community.general/issues/1175).
2 changes: 2 additions & 0 deletions plugins/modules/packaging/os/zypper.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ def main():
supports_check_mode=True
)

module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C')

name = module.params['name']
state = module.params['state']
update_cache = module.params['update_cache']
Expand Down

0 comments on commit 4842f67

Please sign in to comment.