Skip to content
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

Add common option --change-output-adv #5155

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

garnier-quentin
Copy link
Contributor

@garnier-quentin garnier-quentin commented Aug 30, 2024

Community contributors

Description

Add a common option to change the short output and the exit code at the same time.

CTOR-820

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

--change-output-adv='%(short_output) =~ /No daemon/ and %(exit_code) == 0,OK: no daemon,OK'

Checklist

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • I have provide data or shown output displaying the result of this code in the plugin area concerned.

@garnier-quentin garnier-quentin requested a review from a team as a code owner August 30, 2024 12:48
@lucie-dubrunfaut lucie-dubrunfaut added the enhancement Enhance existing label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance existing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants