From 7f1007d13e98a6dbcf121d752e06f1df9b97da32 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 24 Jan 2018 22:04:16 +0100 Subject: [PATCH] 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() --- utils/apparmor/aa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 49dbf1af7..b42beb5cc 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -103,7 +103,7 @@ extras = hasher() # Inactive profiles from extras ### 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) -profile_changes = hasher() +profile_changes = dict() prelog = hasher() changed = dict() created = [] @@ -721,7 +721,7 @@ def sync_profile(): repo_profiles = [] changed_profiles = [] new_profiles = [] - serialize_opts = hasher() + serialize_opts = dict() status_ok, ret = fetch_profiles_by_user(cfg['repository']['url'], cfg['repository']['distro'], user) if not status_ok: