From 62fd10a94b7506a3ece5bcae5f77f92dc53f13dd Mon Sep 17 00:00:00 2001 From: JD Babac Date: Thu, 13 Jul 2023 01:01:04 +0800 Subject: [PATCH] Fix linting issues. --- domaintools_iris_connector.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/domaintools_iris_connector.py b/domaintools_iris_connector.py index 5f97338..ec94fef 100644 --- a/domaintools_iris_connector.py +++ b/domaintools_iris_connector.py @@ -8,7 +8,6 @@ import codecs import json import re - # Imports local to this App import sys from datetime import datetime, timedelta @@ -17,7 +16,6 @@ import phantom.app as phantom import requests import tldextract - from domaintools import API from phantom.action_result import ActionResult from phantom.base_connector import BaseConnector @@ -459,12 +457,26 @@ def _reverse_lookup_domain(self, param): for a in data[0]["mx"]: if "ip" in a: for b in a["ip"]: - ips.append({"ip": b["value"], "type": "MX IP", "count": b["count"], "count_string": self._convert_null_value_to_empty_string(b["count"])}) + ips.append( + { + "ip": b["value"], + "type": "MX IP", + "count": b["count"], + "count_string": self._convert_null_value_to_empty_string(b["count"]) + } + ) for a in data[0]["name_server"]: if "ip" in a: for b in a["ip"]: - ips.append({"ip": b["value"], "type": "NS IP", "count": b["count"], "count_string": self._convert_null_value_to_empty_string(b["count"])}) + ips.append( + { + "ip": b["value"], + "type": "NS IP", + "count": b["count"], + "count_string": self._convert_null_value_to_empty_string(b["count"]) + } + ) sorted_ips = sorted( ips,