-
Christian Boltz authored
The minitools call write_profile(), write_profile_feedback_ui() and serialize_profile() with the _attachment_ as parameter. However, aa-logprof etc. call them with the _profile name_ as parameter. This patch adds an is_attachment parameter to write_profile() and write_profile_feedback_ui(). It also passes it through to serialize_profile() via the options parameter. If is_attachment is True, the parameter will be handled as attachment, otherwise it is expected to be a profile name. tools.py gets changed to set is_attachment to True when calling the functions listed above to make clear that the parameter is an attachment. Note: This patch only adds the is_attachment parameter/option, but doesn't change any behaviour. That will happen in the next patch.