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:
Erik Johnson 2018-08-21 14:54:39 -05:00 committed by rallytime
parent 7bb356f11e
commit 549f5d5a86
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -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: