Skip to content

Commit cf0227b

Browse files
author
Frederick Ross
committed
Add comments on why we put in _BaseService.
1 parent 14e1135 commit cf0227b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

splunklib/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ def connect(**kwargs):
285285
"""
286286
return Service(**kwargs).login()
287287

288+
# In preparation for adding Storm support, we added an
289+
# intermediary class between Service and Context. Storm's
290+
# API is not going to be the same as enterprise Splunk's
291+
# API, so we will derive both Service (for enterprise Splunk)
292+
# and StormService for (Splunk Storm) from _BaseService, and
293+
# put any shared behavior on it.
288294
class _BaseService(Context):
289295
pass
290296

0 commit comments

Comments
 (0)