Verified Commit e94d338d authored by Fabio Manganiello's avatar Fabio Manganiello
Browse files

Proper handling for ignore_directories in file.monitor backend

parent 081da3eb
Pipeline #129 passed with stages
in 6 minutes and 13 seconds
......@@ -33,10 +33,10 @@ class FileMonitorBackend(Backend):
if isinstance(resource, str):
resource = MonitoredResource(resource)
elif isinstance(resource, dict):
if 'patterns' in resource or 'ignore_patterns' in resource:
resource = MonitoredPattern(**resource)
elif 'regexes' in resource or 'ignore_regexes' in resource:
if 'regexes' in resource or 'ignore_regexes' in resource:
resource = MonitoredRegex(**resource)
elif 'patterns' in resource or 'ignore_patterns' in resource or 'ignore_directories' in resource:
resource = MonitoredPattern(**resource)
else:
resource = MonitoredResource(**resource)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment