]> git.ipfire.org Git - thirdparty/suricata.git/commit
suricatactl: Make code compatible with Python 3
authorShivani Bhardwaj <shivanib134@gmail.com>
Sat, 16 Feb 2019 17:57:24 +0000 (23:27 +0530)
committerVictor Julien <victor@inliniac.net>
Sun, 24 Feb 2019 19:00:55 +0000 (20:00 +0100)
commitccea7fe50abdb0ea07ebb21965fec9025eabdb80
tree84e569ad4e809711b2f2a22d623d2682da2f4d5c
parentc47164ebc8ddfcaa36d491375a3c0c052e4d4a09
suricatactl: Make code compatible with Python 3

Call to suricatactl was failing with Python3 with the following error:
```
Traceback (most recent call last):
  File "bin/suricatactl", line 40, in <module>
    sys.exit(main())
  File "./suricata/ctl/main.py", line 50, in main
    args.func(args)
AttributeError: 'Namespace' object has no attribute 'func'
```
Fix this by making it run with Py3 just like it does with Py2.

Closes redmine ticket #2793
python/suricata/ctl/filestore.py
python/suricata/ctl/main.py
python/suricata/ctl/test_filestore.py