Skip to content

Commit

Permalink
Merge pull request mozilla#1204 from mpurzynski/fixup_fixup_duo_logpu…
Browse files Browse the repository at this point in the history
…ll_srcip

Fixup fixup duo logpull srcip
  • Loading branch information
Phrozyn authored Apr 5, 2019
2 parents 54f6669 + d1c1990 commit cfeafb7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cron/duo_logpull.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ def process_events(mozmsg, duo_events, etype, state):

details[i] = e[i]
mozmsg.set_category(etype)
mozmsg.details = normalize(details)
if "access_device" in details:
if "ip" in details["access_device"]:
mozmsg.details["sourceipaddress"] = details["access_device"]["ip"]
localdetails = normalize(details)
if "access_device" in localdetails:
if "ip" in localdetails["access_device"]:
localdetails["sourceipaddress"] = localdetails["access_device"]["ip"]
mozmsg.details = localdetails
del(localdetails)
if etype == "administration":
mozmsg.summary = e["action"]
elif etype == "telephony":
Expand Down

0 comments on commit cfeafb7

Please sign in to comment.