salt.runners.error
Error generator to enable integration testing of salt runner error handling
-
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."
salt.runners.error.error(name=None, message='')
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/runners/all/salt.runners.error.html