Skip to content

Commit fa16dda

Browse files
author
Frederick Ross
committed
Fixed a vestigial call to Stanza.submit with a string instead of a dict.
1 parent c8afd0e commit fa16dda

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/analytics/input.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ def __init__(self, application_name, splunk_info, index = ANALYTICS_INDEX_NAME):
4444
if ANALYTICS_SOURCETYPE not in self.splunk.confs['props']:
4545
self.splunk.confs["props"].create(ANALYTICS_SOURCETYPE)
4646
stanza = self.splunk.confs["props"][ANALYTICS_SOURCETYPE]
47-
stanza.submit("LINE_BREAKER = (%s)" % EVENT_TERMINATOR)
48-
stanza.submit("CHARSET = UTF-8")
49-
stanza.submit("SHOULD_LINEMERGE = false")
47+
stanza.submit({
48+
"LINE_BREAKER": "(%s)" % EVENT_TERMINATOR,
49+
"CHARSET": "UTF-8",
50+
"SHOULD_LINEMERGE": "false"
51+
})
5052
assert(ANALYTICS_SOURCETYPE in self.splunk.confs['props'])
5153

5254
@staticmethod

0 commit comments

Comments
 (0)