Open udf2457 opened 2 years ago
Given the below:
foo: cmd.run: - name: bar - watch: - /foo/bar/*
In the present Salt behaviour, /foo/bar/* is a hard glob (i.e. if no state ID or name matches, it will result in an error).
/foo/bar/*
It makes a lot of sense to allow optional globbing. i.e. in pseudo-code...
if exists(/foo/bar/*) { do it } else { continue }
I'm not so sure. Then people will miss the fact that they've not included the states they expect.
Given the below:
In the present Salt behaviour,
/foo/bar/*
is a hard glob (i.e. if no state ID or name matches, it will result in an error).It makes a lot of sense to allow optional globbing. i.e. in pseudo-code...