Skip to content

Commit f989819

Browse files
authored
Merge pull request splunk#204 from lybroman/add_return_code_for_invalid_args_block
Add return code for invalid args block
2 parents 16a9b84 + 0442acc commit f989819

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

splunklib/modularinput/script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def run_script(self, args, event_writer, input_stream):
102102
err_string = "ERROR Invalid arguments to modular input script:" + ' '.join(
103103
args)
104104
event_writer._err.write(err_string)
105+
return 1
105106

106107
except Exception as e:
107108
err_string = EventWriter.ERROR + str(e)

0 commit comments

Comments
 (0)