Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
erichoog and felixfontein authored Dec 17, 2024
1 parent 8d4805d commit 7a4601a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelogs/fragments/9270-zypper-add-simple_errors.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
minor_changes:
- zypper - add simple_errors option (https://github.com/ansible-collections/community.general/pull/9270).
- zypper - add ``simple_errors`` option (https://github.com/ansible-collections/community.general/pull/9270).
2 changes: 1 addition & 1 deletion plugins/modules/zypper.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def parse_zypper_xml(m, cmd, fail_not_found=True, packages=None):
return packages, rc, stdout, stderr

if m.params['simple_errors']:
stdout = get_simple_errors(dom)
stdout = get_simple_errors(dom) or stdout

m.fail_json(msg='Zypper run command failed with return code %s.' % rc, rc=rc, stdout=stdout, stderr=stderr, cmd=cmd)

Expand Down

0 comments on commit 7a4601a

Please sign in to comment.