mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
change 'profile_changes' and 'serialize_opts' to dict()
The global 'profile_changes' and 'serialize_opts' in sync_profile() are both used as a dict() - no need to make them a hasher()
This commit is contained in:
parent
f8a174c08b
commit
7f1007d13e
@ -103,7 +103,7 @@ extras = hasher() # Inactive profiles from extras
|
|||||||
### end our
|
### end our
|
||||||
log_pid = dict() # handed over to ReadLog, gets filled in logparser.py. The only case the previous content of this variable _might_(?) be used is aa-genprof (multiple do_logprof_pass() runs)
|
log_pid = dict() # handed over to ReadLog, gets filled in logparser.py. The only case the previous content of this variable _might_(?) be used is aa-genprof (multiple do_logprof_pass() runs)
|
||||||
|
|
||||||
profile_changes = hasher()
|
profile_changes = dict()
|
||||||
prelog = hasher()
|
prelog = hasher()
|
||||||
changed = dict()
|
changed = dict()
|
||||||
created = []
|
created = []
|
||||||
@ -721,7 +721,7 @@ def sync_profile():
|
|||||||
repo_profiles = []
|
repo_profiles = []
|
||||||
changed_profiles = []
|
changed_profiles = []
|
||||||
new_profiles = []
|
new_profiles = []
|
||||||
serialize_opts = hasher()
|
serialize_opts = dict()
|
||||||
status_ok, ret = fetch_profiles_by_user(cfg['repository']['url'],
|
status_ok, ret = fetch_profiles_by_user(cfg['repository']['url'],
|
||||||
cfg['repository']['distro'], user)
|
cfg['repository']['distro'], user)
|
||||||
if not status_ok:
|
if not status_ok:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user