File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,16 @@ async def process(
64
64
"""
65
65
Aggregate received events, otherwise store in cache.
66
66
"""
67
+ if "watched_jids" not in ctx .cache :
68
+ ctx .cache ["watched_jids" ] = {}
69
+ if "waiting_for_grains" not in ctx .cache :
70
+ ctx .cache ["waiting_for_grains" ] = {}
67
71
if isinstance (event , EventBusCollectedEvent ):
68
72
log .debug ("Event Bus Collected Event:\n %s" , pprint .pformat (event .dict ()))
69
73
salt_event = event .salt_event
70
74
log .debug ("Event Bus Collected Salt Event:\n %s" , pprint .pformat (salt_event ))
71
75
tag = salt_event .tag
72
76
data = salt_event .data
73
- if "watched_jids" not in ctx .cache :
74
- ctx .cache ["watched_jids" ] = {}
75
- if "waiting_for_grains" not in ctx .cache :
76
- ctx .cache ["waiting_for_grains" ] = {}
77
77
if fnmatch .fnmatch (tag , "salt/job/*/new" ):
78
78
jid = tag .split ("/" )[2 ]
79
79
# We will probably want to make this condition configurable
You can’t perform that action at this time.
0 commit comments