12
12
the full text of the license.
15
from apport.hookutils import *
15
from apport.hookutils import (
17
attach_file_if_exists,
18
attach_related_packages,
17
22
def add_info(report, ui):
18
response = ui.yesno("The contents of your /etc/maas/maas_local_settings.py, "
19
"/etc/maas/pserv.yaml files "
20
"may help developers diagnose your bug more "
21
"quickly. However, it may contain sensitive "
22
"information. Do you want to include it in your "
24
"The contents of your /etc/maas/maas_local_settings.py, "
25
"/etc/maas/pserv.yaml files may help developers diagnose your bug "
26
"more quickly. However, it may contain sensitive information. Do "
27
"you want to include it in your bug report?")
25
if response == None: # user cancelled
29
if response is None: # user cancelled
26
30
raise StopIteration
28
elif response == True:
29
attach_conffiles(report,'maas')
31
elif response is True:
32
attach_conffiles(report, 'maas')
31
34
# Attaching log files
32
attach_file_if_exists(report, '/var/log/maas/maas-django.log', 'MAASLog')
33
attach_file_if_exists(report, '/var/log/maas/pserv.log', 'MAASPservLog')
35
attach_file_if_exists(report, '/var/log/maas/regiond.log', 'MAASRegionLog')
36
attach_file_if_exists(report, '/var/log/maas/pserv.log', 'MAASClusterLog')
35
38
# Attaching related packages info
36
39
attach_related_packages(report, ['python-django-maas', 'apparmor'])