From 25abfadab258d515818a46e34469ff9c8b4e52cf Mon Sep 17 00:00:00 2001 From: Vitalii <88961767+Brazilianian@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:54:49 +0000 Subject: [PATCH] [AbuseSSL] Remove unused variable (#3194) --- 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))