Hi
Coincidently, I happened across this in the documentation yesterday:
salt.states.test.nop(name, **kwargs)
A no-op state that does nothing. Useful in conjunction with the use requisite, or in templates which could otherwise be empty due to jinja rendering
New in version 2015.8.1.
It does seem as if your approach of having a placeholder state is the way this is supposed to be addressed. Unfortunately, test.nop would appear to not be available in your version.
Regards
Andrew
--
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.
For more options, visit https://groups.google.com/d/optout.
Hi
It seems that test.nop is just an alias to this, which is available in your version:
salt.states.test.succeed_without_changes(name)
Returns successful.
New in version 2014.7.0.
name
A unique string.
Regards
Andrew
From: salt-...@googlegroups.com [mailto:salt-...@googlegroups.com] On Behalf Of dean.s...@eduserv.org.uk
Sent: 11 August 2016 12:34 PM
To: Salt-users <salt-...@googlegroups.com>
--
echo: test.show_notification: - name: echo - text: result
changes: test.succeed_with_changes: - name: test changes - onchanges: - test: dummy - onchanges_in: - test: echo
dummy: test.nopecho: test.show_notification: - name: echo - text: result
changes: test.succeed_with_changes: - name: test changes - onchanges_in: - test: echo