Skip to content

Commit e8239e5

Browse files
Comment for allow_empty-input in Generating Commands
1 parent 3664b39 commit e8239e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

splunklib/searchcommands/generating_command.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ def process(self, argv=sys.argv, ifile=sys.stdin, ofile=sys.stdout, allow_empty_
240240
:rtype: NoneType
241241
242242
"""
243+
244+
# Generating commands are expected to run on an empty set of inputs as the first command being run in a search,
245+
# also this class implements its own separate _execute_chunk_v2 method which does not respect allow_empty_input
246+
# so ensure that allow_empty_input is always True
247+
243248
if not allow_empty_input:
244249
raise ValueError("allow_empty_input cannot be False for Generating Commands")
245250
else:

0 commit comments

Comments
 (0)