salt.runners.error

Error generator to enable integration testing of salt runner error handling

salt.runners.error.error(name=None, message='')

If name is None Then return empty dict

Otherwise raise an exception with __name__ from name, message from message

CLI Example:

salt-run error
salt-run error.error name="Exception" message="This is an error."

Docs for previous releases are available on readthedocs.org.

Latest Salt release: 3004

Previous topic

salt.runners.drac

Next topic

salt.runners.event