File tree 2 files changed +14
-9
lines changed
intelmq/bots/parsers/shadowserver
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 23
23
#### Parsers
24
24
- ` intelmq.bots.parsers.shadowserver._config ` :
25
25
- fix error message formatting if schema file is absent (PR #2528 by Sebastian Wagner).
26
+ - ` intelmq.bots.parsers.shadowserver.parser ` :
27
+ - Fix to avoid schema download if not configured #2530 .
26
28
27
29
#### Experts
28
30
Original file line number Diff line number Diff line change @@ -261,15 +261,18 @@ def run(cls, parsed_args=None):
261
261
else :
262
262
logger .setLevel ('ERROR' )
263
263
config .set_logger (logger )
264
- if config .update_schema ():
265
- runtime_conf = utils .get_bots_settings ()
266
- try :
267
- ctl = IntelMQController ()
268
- for bot in runtime_conf :
269
- if runtime_conf [bot ]["module" ] == __name__ :
270
- ctl .bot_reload (bot )
271
- except Exception as e :
272
- logger .error ("Failed to signal bot: %r" % str (e ))
264
+ runtime_conf = utils .get_bots_settings ()
265
+ try :
266
+ ctl = IntelMQController ()
267
+ bots = []
268
+ for bot in runtime_conf :
269
+ if runtime_conf [bot ]["module" ] == __name__ :
270
+ bots .append (bot )
271
+ if len (bots ) and config .update_schema ():
272
+ for bot in bots :
273
+ ctl .bot_reload (bot )
274
+ except Exception as e :
275
+ logger .error ("Failed to update: %r" % str (e ))
273
276
else :
274
277
super ().run (parsed_args = parsed_args )
275
278
You can’t perform that action at this time.
0 commit comments