MCPcopy Create free account
hub / github.com/adobe/Marinus / __init__

Method __init__

python3_cron_scripts/libs3/Rapid7.py:182–196  ·  view source on GitHub ↗
(self, config_file="", log_level=None)

Source from the content-addressed store, hash-verified

180 )
181
182 def __init__(self, config_file="", log_level=None):
183 if config_file != "":
184 self.rapid7_config_file = config_file
185
186 self._logger = self._log()
187 if log_level is not None:
188 self._logger.setLevel(log_level)
189
190 config = configparser.ConfigParser()
191 list = config.read(self.rapid7_config_file)
192 if len(list) == 0:
193 self._logger.error("Error: Could not find the config file")
194 exit(1)
195
196 self._init_Rapid7(config)
197
198 def find_file_locations(self, s, list_type, jobs_manager):
199 """

Callers

nothing calls this directly

Calls 2

_logMethod · 0.95
_init_Rapid7Method · 0.95

Tested by

no test coverage detected