Skip to content

Commit 9705bef

Browse files
Update generating_command.py
1 parent 000fe6b commit 9705bef

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

splunklib/searchcommands/generating_command.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,28 @@ def _execute_chunk_v2(self, process, chunk):
221221
return
222222
self._finished = True
223223

224+
def process(self, argv=sys.argv, ifile=sys.stdin, ofile=sys.stdout, allow_empty_input=True):
225+
""" Process data.
226+
227+
:param argv: Command line arguments.
228+
:type argv: list or tuple
229+
230+
:param ifile: Input data file.
231+
:type ifile: file
232+
233+
:param ofile: Output data file.
234+
:type ofile: file
235+
236+
:param allow_empty_input: It is set to true for generating commands.
237+
:type allow_empty_input: bool
238+
239+
:return: :const:`None`
240+
:rtype: NoneType
241+
242+
"""
243+
allow_empty_input = True
244+
return super().process(argv=argv, ifile=ifile, ofile=ofile, allow_empty_input=allow_empty_input)
245+
224246
# endregion
225247

226248
# region Types

0 commit comments

Comments
 (0)