diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 2d3837a1b..e5905018f 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -432,7 +432,7 @@ def create_new_profile(localfile, is_stub=False): def get_profile(prof_name): """search for inactive/extra profile, and ask if it should be used""" - if not extra_profiles.profiles.get(prof_name, False): + if not extra_profiles.profile_exists(prof_name): return None # no inactive profile found # TODO: search based on the attachment, not (only?) based on the profile name