Skip to content

Commit 7752204

Browse files
author
Frederick Ross
committed
Added doctoring to splunk_version.
1 parent fba0947 commit 7752204

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

splunklib/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,11 @@ def settings(self):
466466

467467
@property
468468
def splunk_version(self):
469+
"""Get the version of the splunkd instance this object is attached to.
470+
471+
The version is returned as a 3-tuple of the version components as
472+
integers (i.e., `(4,3,3)` or `(5,0,0)`.
473+
"""
469474
if self._splunk_version is None:
470475
self._splunk_version = tuple([int(p) for p in self.info['version'].split('.')])
471476
return self._splunk_version

0 commit comments

Comments
 (0)