Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

🔄 synced file(s) with bosch-grow-pat/qg-apps-python #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apps/splunk-fetcher/src/yaku/splunk_fetcher/splunk/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@


class SplunkResult:
messages: list[dict] = []
results: list[dict] = []
fieldnames: list[str] = []
override_csv: bytes | None = None
override_json: bytes | None = None

# Overrides have to be added,
# as the results in the reader do not contain empty columns, which are expected so far
def __init__(
Expand All @@ -21,6 +15,12 @@ def __init__(
override_csv: bytes | None = None,
override_json: bytes | None = None,
):
self.messages: list[dict] = []
self.results: list[dict] = []
self.fieldnames: list[str] = []
self.override_csv: bytes | None = None
self.override_json: bytes | None = None

logger.info("Processing SplunkResult ...")
for item in reader:
logger.debug(f"Processing item {item}")
Expand Down