-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow both list and glob matching #42058
Comments
Can you not do this with compound match? salt -C https://docs.saltstack.com/en/latest/topics/targeting/compound.html |
I guess I am just asking for alternative syntax. :-) Which is somewhere in between of all-powerful compound match and just a fixed list. |
I don't see a reason we couldn't allow the list to be a list of globs. |
I assumed this would work (list matching with globs) and was disappointed when it didn't. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Unstale. |
Thank you for updating this issue. It is no longer marked as stale. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Unstale. |
Thank you for updating this issue. It is no longer marked as stale. |
Currently, one can or do a list matching or glob matching, but not both at the same time. But commas are not so common in server names, so I think that we could have both at the same time. This is at least what in most cases I would need. A simply way to list servers and sometimes to use some wildcard. I managed to implement this pretty easily in Python:
The text was updated successfully, but these errors were encountered: