mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix possible oversight in nodegroup modifications
b3e2f38
enhanced nodegroup matching to allow sequences. However, the
list of regex special characters appears to have been improperly
formatted.
This commit is contained in:
parent
9d4321ddac
commit
9951b8dcf1
@ -149,7 +149,7 @@ def nodegroup_comp(nodegroup, nodegroups, skip=None, first_call=True):
|
|||||||
# No compound operators found in nodegroup definition. Check for
|
# No compound operators found in nodegroup definition. Check for
|
||||||
# group type specifiers
|
# group type specifiers
|
||||||
group_type_re = re.compile('^[A-Z]@')
|
group_type_re = re.compile('^[A-Z]@')
|
||||||
regex_chars = ['(', '[', '{', '\\', '?''}])']
|
regex_chars = ['(', '[', '{', '\\', '?', '}', ']', ')']
|
||||||
if not [x for x in ret if '*' in x or group_type_re.match(x)]:
|
if not [x for x in ret if '*' in x or group_type_re.match(x)]:
|
||||||
# No group type specifiers and no wildcards.
|
# No group type specifiers and no wildcards.
|
||||||
# Treat this as an expression.
|
# Treat this as an expression.
|
||||||
|
Loading…
Reference in New Issue
Block a user