Skip to content

Commit

Permalink
[win32_event_log] fix tag_event_id:true πŸ›
Browse files Browse the repository at this point in the history
Objects returned by the WMISampler have a dictionnary structure.
Fix regression introduced with #2136 when `tag_event_id:true`.
  • Loading branch information
yannmh authored and olivielpeau committed Mar 30, 2016
1 parent cf4e903 commit 37f839b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.d/win32_event_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class LogEvent(object):
def __init__(self, ev, hostname, tags, notify_list, tag_event_id):
self.event = ev
self.hostname = hostname
self.tags = self._tags(tags, ev.EventCode) if tag_event_id else tags
self.tags = self._tags(tags, self.event['EventCode']) if tag_event_id else tags
self.notify_list = notify_list
self.timestamp = self._wmi_to_ts(self.event['TimeGenerated'])

Expand Down

0 comments on commit 37f839b

Please sign in to comment.