saltstack / saltstack/salt

[BUG] Strange case sensitivity when matching minions

Open
#60,929 4 comments 0 reactions 1 assignee View on GitHub

@twangboy is already working on this.

Since Sep 22, 2021.

bug Core severity-medium
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

salt 'us*' test.ping matches minions that start with 'us' and 'US' (both upper and lower case).
salt 'US*' test.ping only matches minions that start with 'US' and not 'us' (only upper case).

In our system, Windows machines are all upper-case...so I'm thinking maybe Windows is the culprit even though the salt master is running on a 'nix system.

I can work around this by running salt -E 'us.*' or salt -E 'US.*'.

Expected behavior
I would expect minion matching to be case-sensitive and consistent with other salt programs like salt-key.
salt-key -a us* only matches lower-case.
salt-key -a US* only matches upper-case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.