-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contrib: feeds-config-generator does not add feed name as parameter #1314
Comments
That's a bug in the script. It needs to add the name of the feed ("Phishing" in this case) as parameter for the bot. |
Approach 1The name of the feed is already being generated by the script like the configuration required. However, the script does not put the value inside parameters:
You can see here on this line: https://github.com/certtools/intelmq/blob/develop/intelmq/lib/bot.py#L495 So, unless there is a specific reason for that (I don't know), I would suggest to change the line (https://github.com/certtools/intelmq/blob/develop/intelmq/lib/bot.py#L812) to the following one:
@sebix makes sense the way I'm thinking? Approach 2Or may be the other way around (I think I start understanding your point) is:
Let me know which approach you want me to follow (or other one) and I will create a pull request. |
Approach 1:
What I called a bug in the script (a bug because it does not behave what's expected by intelmq).
That would be a change in the behavior, that at least needs backwards compatibility and consensus. Approach 2:
The feed name is already the name of the section, e.g. "Phishing". Or alternatively concatenate provider and feed name. The removal of |
So, why do we need a So, I think the fix is just change this line (https://github.com/certtools/intelmq/blob/develop/intelmq/lib/bot.py#L812) to:
Makes sense? |
Better ask that yourself, this was already the case before I joined this project ;) Joking apart, the difference is that name/description/group/module describe the bot as in the BOTS file. So self.name is the name of the bot class itself. In the manager the fields group, module and name are read-only (name can be discussed here, but module and group are definitely read-only values). The parameter name is used as |
Or may be better write on documentation?!?!
The #1144 and #1241 are exactly the opposite of "Consequently it has been proposed to change it to feed" So... What needs to be done regarding this topic? code and docs are not sync regarding this field... |
@wagner-certat let me know if this updates make sense #1321 |
Where? Please note that the change from name to feed is done for 1.2.0 (develop branch) not the maintenance branch (1.1.1) you are currently working on (which is fine IMO btw). I'm currently reviewing the PR. |
In both branches (maintenance and develop) and I don't see the requirement for
I'm not understanding .... are you saying that in version 1.2.0 (develop branch) changed FROM
Thank you! My pull request tries to sync docs and code. |
Hm, wait. I'm finally confused. Ok, the (new) logic is: Ad docs: |
The text was updated successfully, but these errors were encountered: