Skip to content

Commit 180fa37

Browse files
committed
Improve comment in Configurations.__getitem__.
1 parent 6b46e45 commit 180fa37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

splunklib/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,10 @@ def __init__(self, service):
15491549
raise ValueError("Configurations cannot have wildcards in namespace.")
15501550

15511551
def __getitem__(self, key):
1552+
# The superclass implementation is designed for collections that contain
1553+
# entities. This collection (Configurations) contains collections
1554+
# (ConfigurationFile).
1555+
#
15521556
# The configurations endpoint returns multiple entities when we ask for a single file.
15531557
# This screws up the default implementation of __getitem__ from Collection, which thinks
15541558
# that multiple entities means a name collision, so we have to override it here.

0 commit comments

Comments
 (0)