diff options
author | David Sommerseth <davids@redhat.com> | 2015-11-12 15:17:36 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2015-11-12 15:17:36 +0100 |
commit | c887aa699542cf2d816d13e7a24c83bae172c6a5 (patch) | |
tree | ab624d03dad552f584d5b1bd8a9e45eabe5c252f | |
parent | 601ef99ca66f694c1c7e27c97be0554572f5b6ad (diff) | |
download | logactio-c887aa699542cf2d816d13e7a24c83bae172c6a5.tar.gz logactio-c887aa699542cf2d816d13e7a24c83bae172c6a5.tar.xz logactio-c887aa699542cf2d816d13e7a24c83bae172c6a5.zip |
IPTipset: Ensure only the first regex match is used for IP address
This change is based on the API changes of the message strings
being changed to Python lists. Currently we expect only one regex
match group, where the first element is the IP address.
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | LogActio/Reporters/IPTipset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LogActio/Reporters/IPTipset.py b/LogActio/Reporters/IPTipset.py index 182fc42..cd676b9 100644 --- a/LogActio/Reporters/IPTipset.py +++ b/LogActio/Reporters/IPTipset.py @@ -337,7 +337,7 @@ class IPTipset(LogActio.ReporterQueue.ReporterQueue): # Format the report message msg = {"rulename": rulename, "threshold": threshold, - "ipaddress": msg, "logfile": logfile, + "ipaddress": msg[0], "logfile": logfile, "count": count} # Queue the message for sending |