Feature request - Optional glob matching in requisites
Open
@twangboy is already working on this.
Since Jan 20, 2022.
Feature
Requisite
State-Compiler
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
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).
It makes a lot of sense to allow optional globbing. i.e. in pseudo-code...
if exists(/foo/bar/*) {
do it
} else {
continue
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.