Skip to content

Commit

Permalink
compliance rar --report-type=vault bug-fix (KC-757)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaunario-keeper authored and sk-keeper committed Mar 12, 2024
1 parent 862b69c commit 98336a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keepercommander/commands/compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def compile_user_report(user, access_events):
access_records = dict()
user_access_data = {user: access_records}
rec_uids = access_events.keys() if report_type == report_type_default \
else {r.record_uid for r in vault_records}
else {r for r in vault_records}

for uid in rec_uids:
access_event = access_events.get(uid, {})
Expand Down Expand Up @@ -579,7 +579,7 @@ def compile_report_data(rec_ids):

for name in usernames:
vault_records = sox_data.get_vault_records(name)
filter_by_recs = None if report_type == report_type_default else {r.record_uid for r in vault_records}
filter_by_recs = None if report_type == report_type_default else {r for r in vault_records}
user_access_events = get_records_accessed(name, filter_by_recs)
user_access_lookup.update(compile_user_report(name, user_access_events))

Expand Down

0 comments on commit 98336a1

Please sign in to comment.