command_execution_result

Execute a command and create result conditions depending on its exit code.

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
commandCommand to run.

This parameter is required.
kept_codesList of codes that produce a kept status separated with commas (ex: 1,2,5).

This parameter is required.
repaired_codesList of codes that produce a repaired status separated with commas (ex: 3,4,6).

This parameter is required.

Outcome conditions

You need to replace ${command} with its actual canonified value.

  • ✅ Ok: command_execution_result_${command}_ok
    • ☑️ Already compliant: command_execution_result_${command}_kept
    • 🟨 Repaired: command_execution_result_${command}_repaired
  • ❌ Error: command_execution_result_${command}_error

Example

method: command_execution_result
params:
  repaired_codes: VALUE
  kept_codes: VALUE
  command: 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