Skip to content

Commit

Permalink
Fix RAM limit, fix exporting empty results
Browse files Browse the repository at this point in the history
  • Loading branch information
kam193 committed Apr 3, 2024
1 parent ca3ff4f commit b050a24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion network-information/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
2
4 changes: 2 additions & 2 deletions network-information/service/al_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def _handle_ip(self, ip_address: str) -> ResultTableSection:
section = ResultTableSection(f"IP: {ip_address}")
for source_name, data in ip_info.items():
if data:
subsection = ResultTableSection(f"Data from {source_name}")
subsection = ResultTableSection(f"[MMDB] Data from {source_name}")
for key, value in data.items():
subsection.add_row(TableRow({"Information": key.title(), "Value": value}))
section.add_subsection(subsection)
return section
return section if section.subsections else None

def _handle_ips(self, request: ServiceRequest) -> ResultSection | None:
# TODO: optional static
Expand Down
5 changes: 0 additions & 5 deletions network-information/service/mmdb.py

This file was deleted.

4 changes: 2 additions & 2 deletions network-information/service_manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ enabled: true

accepts: .* # All files
rejects: empty
stage: REVIEW
stage: POST
category: Networking
uses_tags: true
uses_temp_submission_data: true
Expand Down Expand Up @@ -55,7 +55,7 @@ update_config:
dependencies:
updates:
container:
ram_mb: 256
ram_mb: 512
allow_internet_access: true
command: ["python", "-m", "service.updater"]
image: ${REGISTRY}ghcr.io/kam193/assemblyline-service-network-information:$SERVICE_TAG
Expand Down

0 comments on commit b050a24

Please sign in to comment.