Skip to content

Commit 9b9d964

Browse files
committed
Minor refactoring of Inputs.
1 parent e62f8d5 commit 9b9d964

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

splunklib/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,11 +2132,14 @@ def itemmeta(self, kind):
21322132
def _get_kind_list(self, subpath=None):
21332133
if subpath is None:
21342134
subpath = []
2135+
21352136
kinds = []
21362137
response = self.get('/'.join(subpath))
21372138
content = _load_atom_entries(response)
21382139
for entry in content:
21392140
this_subpath = subpath + [entry.title]
2141+
# The "all" endpoint is not a real input collection.
2142+
# The "tcp/ssl" endpoint is not a real input collection.
21402143
if entry.title == 'all' or this_subpath == ['tcp','ssl']:
21412144
continue
21422145
elif 'create' in [x.rel for x in entry.link]:
@@ -2323,7 +2326,7 @@ def list(self, *kinds, **kwargs):
23232326
return entities
23242327

23252328
def __iter__(self, **kwargs):
2326-
for item in self.list(**kwargs):
2329+
for item in self.iter(**kwargs):
23272330
yield item
23282331

23292332
def iter(self, **kwargs):

0 commit comments

Comments
 (0)