From 2ee8627255e38928c98669f0a159942ef32a29d2 Mon Sep 17 00:00:00 2001 From: Brazilianian Date: Thu, 9 Jan 2025 20:12:51 +0200 Subject: [PATCH] fix: remove unused variable update_existing_data; fill missed docstrings --- external-import/abuse-ssl/src/abuse-ssl.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/external-import/abuse-ssl/src/abuse-ssl.py b/external-import/abuse-ssl/src/abuse-ssl.py index 2ede98a0e5..975f1249c9 100644 --- a/external-import/abuse-ssl/src/abuse-ssl.py +++ b/external-import/abuse-ssl/src/abuse-ssl.py @@ -47,11 +47,6 @@ def __init__(self): ) * 60 ) - self.update_existing_data = get_config_variable( - "CONNECTOR_UPDATE_EXISTING_DATA", - ["connector", "update_existing_data"], - config, - ) def run(self): """Running component of class""" @@ -200,7 +195,9 @@ def create_relationships(self, observables, indicators): def create_bundle(self, observables, indicators, relationships): """Creates serialized STIX Bundle object from the provided lists of STIX Observables, Indicators, and Relationships + :param observables: List of STIX Observables objects :param indicators: List of STIX Indicator objects + :param relationships: List of STIX Relationship objects :return: Serialized STIX Bundle object """ self.helper.log_info("Creating STIX Bundle") @@ -219,18 +216,15 @@ def send_bundle(self, bundle, work_id): Attempts to send serialized STIX Bundle to OpenCTI client :param bundle: Serialized STIX Bundle + :param work_id: a valid work id """ self.helper.log_info("Sending STIX Bundle") try: - self.helper.send_stix2_bundle( - bundle, work_id=work_id, update=self.update_existing_data - ) + self.helper.send_stix2_bundle(bundle, work_id=work_id) except: time.sleep(60) try: - self.helper.send_stix2_bundle( - bundle, work_id=work_id, update=self.update_existing_data - ) + self.helper.send_stix2_bundle(bundle, work_id=work_id) except Exception as e: self.helper.log_error(str(e))