hosts.py: Added support for "&" operator in groups pattern

master
Felix Stupp 4 years ago
parent 0b0135dd57
commit 78dbfe3c8e
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -120,6 +120,7 @@ def _read_yaml(path):
GROUPS_PATTERN_OPS = {
"": lambda old, add: old | add,
"&": lambda old, add: old & add,
"!": lambda old, add: old - add,
}
GROUPS_PATTERN_OPS_NAMES = "".join(GROUPS_PATTERN_OPS.keys())

Loading…
Cancel
Save