Skip to content

Commit c8afd0e

Browse files
author
Frederick Ross
committed
Remove argument from Inputs.kinds, and workaround Python's strange behavior for default argument values.
1 parent 408ce17 commit c8afd0e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

splunklib/client.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,9 @@ def itemmeta(self, kind):
21702170
content = _load_atom(response, MATCH_ENTRY_CONTENT)
21712171
return _parse_atom_metadata(content)
21722172

2173-
def _get_kind_list(self, subpath=[]):
2173+
def _get_kind_list(self, subpath=None):
2174+
if subpath is None:
2175+
subpath = []
21742176
kinds = []
21752177
response = self.get('/'.join(subpath))
21762178
content = _load_atom_entries(response)
@@ -2187,11 +2189,8 @@ def _get_kind_list(self, subpath=[]):
21872189
return kinds
21882190

21892191
@property
2190-
def kinds(self, subpath=[]):
2191-
"""Returns the input kinds for a given path.
2192-
2193-
:param subpath: The relative endpoint path.
2194-
:type subpath: ``string``
2192+
def kinds(self):
2193+
"""Returns the input kinds on this Splunk instance.
21952194
21962195
:return: The list of input kinds.
21972196
:rtype: ``list``

0 commit comments

Comments
 (0)