-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request][zypper] Add parameter to simplify/reduce error output #8416
Comments
Files identified in the description: If these files are incorrect, please update the |
ansibullbot
added
feature
This issue/PR relates to a feature request
module
module
plugins
plugin (any type)
labels
May 25, 2024
I could submit a PR for this if welcomed. |
I think that should be ok! |
I will try and get a PR submitted this week for this. |
erichoog
pushed a commit
to erichoog/community.general
that referenced
this issue
Dec 17, 2024
erichoog
pushed a commit
to erichoog/community.general
that referenced
this issue
Dec 23, 2024
felixfontein
pushed a commit
to erichoog/community.general
that referenced
this issue
Dec 23, 2024
felixfontein
added a commit
that referenced
this issue
Dec 25, 2024
* zypper: add simple_errors option -fixes #8416 * Fix style issues * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * Fix indentation * Add changelog fragment * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * Updated as per code review recommendations * Fix whitespace * Add quiet option, fix logic, update changelog * Fix trailing whitespace * Update plugins/modules/zypper.py Co-authored-by: Felix Fontein <[email protected]> * Add suggested improvements --------- Co-authored-by: Eric Hoogeveen <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
patchback bot
pushed a commit
that referenced
this issue
Dec 25, 2024
* zypper: add simple_errors option -fixes #8416 * Fix style issues * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * Fix indentation * Add changelog fragment * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * Updated as per code review recommendations * Fix whitespace * Add quiet option, fix logic, update changelog * Fix trailing whitespace * Update plugins/modules/zypper.py Co-authored-by: Felix Fontein <[email protected]> * Add suggested improvements --------- Co-authored-by: Eric Hoogeveen <[email protected]> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 825e0ee)
felixfontein
pushed a commit
that referenced
this issue
Dec 25, 2024
…ion - fixes #8416 (#9370) zypper: add simple_errors option - fixes #8416 (#9270) * zypper: add simple_errors option -fixes #8416 * Fix style issues * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * Fix indentation * Add changelog fragment * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * Updated as per code review recommendations * Fix whitespace * Add quiet option, fix logic, update changelog * Fix trailing whitespace * Update plugins/modules/zypper.py Co-authored-by: Felix Fontein <[email protected]> * Add suggested improvements --------- Co-authored-by: Eric Hoogeveen <[email protected]> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 825e0ee) Co-authored-by: Eric <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
This is a feature request for the zypper module:
<message>
tags in output on failureIssue Details
When patching many systems with the zypper module we occasionally hit an issue where installing packages fails due to lack of free space on the client machines.
There are often many packages to be updated and when these failures occur there is alot of xml output from zypper (and the module) to parse through. This makes it harder to pick out the actual error message from the output.
Generally on a failure like this, only the text in the
<message>
tags are relevant instead of the entire xml output.Proposed Solution
Ideally we could pass a parameter like
simple_errors: true
to the module and it would only dump the text in the<message>
tags on failure instead of the entire xml output.I have written some code for this but haven't contributed here before. Please let me know if this is something that others might be interested in.
Issue Type
Feature Idea
Component Name
zypper
Additional Information
Adding
simple_errors: true
would ensure only text from<message>
tags are dumped to stout instead of the entire xml output on failure:Code of Conduct
The text was updated successfully, but these errors were encountered: