mirror of https://github.com/jumpserver/jumpserver
fix: Gather account new-found risk failed
parent
0afc1e6f5b
commit
e03d983020
|
@ -1,6 +1,6 @@
|
||||||
import time
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
|
import time
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
|
||||||
from accounts.const import AutomationTypes
|
from accounts.const import AutomationTypes
|
||||||
|
@ -159,10 +159,10 @@ class AnalyseAccountRisk:
|
||||||
if not self.check_risk:
|
if not self.check_risk:
|
||||||
return
|
return
|
||||||
|
|
||||||
basic = {"asset": asset, "username": d["username"], 'gathered_account': ga.id}
|
|
||||||
if ga:
|
if ga:
|
||||||
self._analyse_item_changed(ga, d)
|
self._analyse_item_changed(ga, d)
|
||||||
elif not sys_found:
|
if not sys_found:
|
||||||
|
basic = {"asset": asset, "username": d["username"], 'gathered_account': ga}
|
||||||
self._create_risk(
|
self._create_risk(
|
||||||
dict(
|
dict(
|
||||||
**basic,
|
**basic,
|
||||||
|
|
Loading…
Reference in New Issue