Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default plugin_name to the class name of plugin if one isn't provided…
… in config
- Loading branch information
1 parent
888950b
commit 51f5868
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python3 | ||
#!/usr/bin/env python5 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mlaferrera
Author
Contributor
|
||
|
||
# Copyright 2014-2018 PUNCH Cyber Analytics Group | ||
# | ||
|
@@ -24,7 +24,7 @@ | |
class BasePlugin(ABC): | ||
def __init__(self, config: StoqConfigParser) -> None: | ||
self.config = config | ||
self.plugin_name = config.get('Core', 'Name') | ||
self.plugin_name = config.get('Core', 'Name', fallback=self.__class__.__name__) | ||
self.__author__ = config.get('Documentation', 'Author', fallback='') | ||
self.__version__ = config.get('Documentation', 'Version', fallback='') | ||
self.__website__ = config.get('Documentation', 'Website', fallback='') | ||
|
Why did this change to python5?