mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Updates to inotify beacon
This commit is contained in:
parent
8f0a34e035
commit
85df01804c
@ -109,7 +109,7 @@ def validate(config):
|
||||
return False, 'Configuration for inotify beacon must be a list.'
|
||||
else:
|
||||
for config_item in config:
|
||||
|
||||
if config_item:
|
||||
path = config_item.keys()[0]
|
||||
|
||||
if not isinstance(config_item[path], dict):
|
||||
@ -151,7 +151,7 @@ def beacon(config):
|
||||
|
||||
beacons:
|
||||
inotify:
|
||||
/path/to/file/or/dir:
|
||||
- /path/to/file/or/dir:
|
||||
mask:
|
||||
- open
|
||||
- create
|
||||
@ -163,7 +163,7 @@ def beacon(config):
|
||||
- /path/to/file/or/dir/exclude2
|
||||
- /path/to/file/or/dir/regex[a-m]*$:
|
||||
regex: True
|
||||
coalesce: True
|
||||
- coalesce: True
|
||||
|
||||
The mask list can contain the following events (the default mask is create,
|
||||
delete, and modify):
|
||||
@ -264,6 +264,7 @@ def beacon(config):
|
||||
# TODO: make the config handle more options
|
||||
for path_config in config:
|
||||
|
||||
if path_config:
|
||||
path = path_config.keys()[0]
|
||||
|
||||
if isinstance(path_config[path], dict):
|
||||
|
Loading…
Reference in New Issue
Block a user