Skip to content

Commit ac1f050

Browse files
committed
chore(cli): remove fields for subdomains command
1 parent a70a9d7 commit ac1f050

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

censys/cli/commands/subdomains.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ def cli_subdomains(args: argparse.Namespace): # pragma: no cover
4040

4141
with err_console.status(f"Querying {args.domain} subdomains"):
4242
query = client.search(
43-
certificate_query,
44-
per_page=100, # 100 is the max per page
45-
pages=args.pages,
46-
fields=["names"], # TODO: Remove this when names is returned by default
47-
)
43+
certificate_query, per_page=100, pages=args.pages
44+
) # 100 is the max per page
4845

4946
# Flatten the result, and remove duplicates
5047
for hits in query:

tests/cli/test_subdomains.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_search_subdomains(self):
6060
json=CERT_SEARCH_RESPONSE,
6161
match=[
6262
responses.matchers.json_params_matcher(
63-
{"per_page": 100, "q": "names: censys.io", "fields": ["names"]}
63+
{"per_page": 100, "q": "names: censys.io"}
6464
)
6565
],
6666
)

0 commit comments

Comments
 (0)