fix(streaming_service): keep pattern to avoid rebuilding rules

This causes the `advanced_config` and `self.advanced_config` to differ
without any changes to the default config in `api.py`.
This commit is contained in:
Dario
2021-02-10 17:11:40 +01:00
committed by Rémi Alvergnat
parent a2f48e2c6f
commit 62f0c0ec5d
@@ -31,9 +31,8 @@ def streaming_service(config): # pylint: disable=too-many-statements,unused-arg
patterns = items if isinstance(items, list) else [items]
for pattern in patterns:
if isinstance(pattern, dict):
pattern_value = pattern.pop('pattern')
kwargs = pattern
pattern = pattern_value
kwargs = dict(pattern)
pattern = kwargs.pop('pattern')
else:
kwargs = {}
regex = kwargs.pop('regex', False)