Skip to content

Commit 0147b5e

Browse files
fix: ingestion extended by *.xml files
1 parent 85226b4 commit 0147b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_splunk_addon/standard_lib/event_ingestors/requirement_event_ingester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def get_events(self):
108108
if os.path.isdir(req_file_path):
109109
for file1 in os.listdir(req_file_path):
110110
filename = os.path.join(req_file_path, file1)
111-
if filename.endswith(".log"):
111+
if filename.endswith(".log") or filename.endswith(".xml"):
112112
if self.check_xml_format(filename):
113113
root = self.get_root(filename)
114114
for event_tag in root.iter("event"):

0 commit comments

Comments
 (0)