Bug 2137796 - [RFE] provide a way to suppress all output unless there were problems
Summary: [RFE] provide a way to suppress all output unless there were problems
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Maintain
Version: 6.12.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-26 08:47 UTC by Evgeni Golov
Modified: 2023-08-12 23:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Evgeni Golov 2022-10-26 08:47:54 UTC
Description of problem:
When running foreman-maintain via automation, you usually do not want to see all the successful steps. Especially if the "automation" is the good old cron, that sends mail of all the output it gathers.

It is custom to have a cli flag (like --quiet or --batch or --cron) that suppresses all output unless there was an issue. In this case the failing step is printed (sometimes also the successful ones, I don't mind too much either way, whatever is easier to implement).


Version-Release number of selected component (if applicable):
6.12.0 and any other

How reproducible:
100%

Steps to Reproduce:
1. run `foreman-maintain backup online --assumeyes /var/tmp/backup` via cron

Actual results:
you get mail even if the run was successful

Expected results:
no output and thus no mail unless there was an error

Additional info:

Comment 1 Evgeni Golov 2022-10-26 08:58:00 UTC
implementation note: there is already a --quiet command to one of the content commands, I'd be fine renaming that one, but should be considered during implementation


Note You need to log in before you can comment on or make changes to this bug.