Fix error in AppArmorBug exception text

This commit is contained in:
Mark Grassi 2022-09-10 17:50:42 -04:00
parent 7f6ffd33b2
commit 5dc10264d2

View file

@ -278,7 +278,7 @@ def combine_profname(name_parts):
"""combine name_parts (main profile, child) into a joint main//child profile name"""
if not isinstance(name_parts, list):
raise AppArmorBug('combine_name() called with parameter of type %s, must be a list' % type(name_parts))
raise AppArmorBug('combine_profname() called with parameter of type %s, must be a list' % type(name_parts))
# if last item is None, drop it (can happen when called with [profile, hat] when hat is None)
if name_parts[len(name_parts)-1] is None: