--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/aa7cac74-2c03-4f64-9e5e-1fdaf57b3561%40googlegroups.com.
You are going to need a custom python state module for that. It is going to have to have the warning in its return value.For most other options one of the test state module functions can handle it but I don't think the test state functions use warnings.an example of a state that uses this
On Mon, Jul 22, 2019 at 7:30 AM Vaarlion <guillaum...@webedia-group.com> wrote:
Hello :)--
Have someone manage to return a custom "warning" message from a state ?
I'm not talking about salt.log.warning but real highstate warning as defined here : https://github.com/saltstack/salt/blob/develop/salt/output/highstate.py#L402...Sadly, digging in the doc or in google, the info have been drown in "how do i solve this warning" post :(A custom python thingy is also OK if there is no build-in.Thank you for reading :)
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-...@googlegroups.com.