Skip to content

Commit

Permalink
Fix linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbabac committed Jul 12, 2023
1 parent 575ec51 commit 62fd10a
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions domaintools_iris_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import codecs
import json
import re

# Imports local to this App
import sys
from datetime import datetime, timedelta
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 62fd10a

Please sign in to comment.