-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels

Description
If a bot has no parameters, like:
...
"bot-id": {
"name": "foobar bot",
"group": "Expert",
"module": "intelmq.bots.experts.foobar",
"description": "Foobar descr",
"enabled": "true"
}
...
(Which also points the user to the completely wrong direction)
I suspect that the code which needs to be adapted is here:
intelmq-manager/intelmq_manager/static/js/configs.js
Lines 150 to 163 in a83dbbe
app.bots[bot_group][bot_name] = { | |
'name': bot_name, | |
'group': bot_group, | |
'module': bot['module'], | |
'description': bot['description'], | |
'enabled': true, | |
'parameters': bot['parameters'], | |
'run_mode': 'continuous' | |
}; | |
for (let parameter in bot['parameters']) { | |
var value = bot['parameters'][parameter]; | |
app.bots[bot_group][bot_name]['parameters'][parameter] = value; | |
} |