We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e29004a + 048aeab commit b81e081Copy full SHA for b81e081
splunklib/modularinput/event_writer.py
100644
100755
@@ -82,5 +82,6 @@ def write_xml_document(self, document):
82
83
def close(self):
84
"""Write the closing </stream> tag to make this XML well formed."""
85
- self._out.write("</stream>")
+ if self.header_written:
86
+ self._out.write("</stream>")
87
self._out.flush()
0 commit comments