mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Allow compound matching in eauth config expressions
When we try to match the configured expression, we look for a match type (e.g. `I@`, `G@`, etc.) at the beginning, and when we don't find one we were falling back to a glob. This changes the fallback to compound so that we can support compound matches. Note that the compound matching engine will act just like the glob match engine when the host passed to it is a single minion ID glob, so using compound as the fallback gets you glob matching for free.
This commit is contained in:
parent
7bb356f11e
commit
549f5d5a86
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ class CkMinions(object):
|
|||
'S': 'ipcidr',
|
||||
'E': 'pcre',
|
||||
'N': 'node',
|
||||
None: 'glob'}
|
||||
None: 'compound'}
|
||||
|
||||
target_info = parse_target(auth_entry)
|
||||
if not target_info:
|
||||
|
|
Loading…
Add table
Reference in a new issue