command_execution_result
Execute a command and create result conditions depending on its exit code.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
command | Command to run. This parameter is required. |
kept_codes | List of codes that produce a kept status separated with commas (ex: 1,2,5). This parameter is required. |
repaired_codes | List of codes that produce a repaired status separated with commas (ex: 3,4,6). This parameter is required. |
Example
method: command_execution_result
params:
kept_codes: VALUE
command: VALUE
repaired_codes: VALUE
Documentation
Execute a command and create result conditions depending on the exit codes given in parameters. If an exit code is not in the list it will lead to an error status. If you want 0 to be a success you have to list it in the kept_codes list