mirror of https://github.com/OISF/suricata
suricatasc: Fix command failures
This commit addresses the following three cases: 1. Do not use maxsplit keyword arg maxsplit argument to the split command was not a part of Python 2 and using it with Python 2 causes the following failure: ``` TypeError: split() takes no keyword arguments ``` Avoid this by eliminating all the named arguments from split. 2. Fix failure on extra arguments Up until now, suricatasc fails if any command which is not supposed to take args is given args. Fix this by ignoring any extra params. Closes redmine ticket #2813 3. Fix failure on different type of args If a command was given a string argument where it expected an int, it would fail and the process would exit. Fix this by handling the exception caused in such cases. Closes redmine ticket #2812pull/3661/head
parent
27842c3750
commit
b0b12021d3
Loading…
Reference in New Issue