summaryrefslogtreecommitdiff
path: root/debian/openssh-server.apport
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-08-03 13:27:22 +0100
committerColin Watson <cjwatson@debian.org>2019-08-03 13:27:22 +0100
commitc0e57836abe9ef24f07c258198283689b51e3613 (patch)
tree9e48e1f555652182762b53c17676f6a264f5078c /debian/openssh-server.apport
parent9e0323ffdc00a48e282b4bd7f0f974665ffe35e1 (diff)
debian/*.apport: Fix flake8 errors
Diffstat (limited to 'debian/openssh-server.apport')
-rw-r--r--debian/openssh-server.apport5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/openssh-server.apport b/debian/openssh-server.apport
index 58631be2d..aa853b51c 100644
--- a/debian/openssh-server.apport
+++ b/debian/openssh-server.apport
@@ -12,6 +12,7 @@ the full text of the license.
12 12
13from apport.hookutils import root_command_output 13from apport.hookutils import root_command_output
14 14
15
15def add_info(report, ui): 16def add_info(report, ui):
16 response = ui.yesno("The contents of your /etc/ssh/sshd_config file " 17 response = ui.yesno("The contents of your /etc/ssh/sshd_config file "
17 "may help developers diagnose your bug more " 18 "may help developers diagnose your bug more "
@@ -19,8 +20,8 @@ def add_info(report, ui):
19 "information. Do you want to include it in your " 20 "information. Do you want to include it in your "
20 "bug report?") 21 "bug report?")
21 22
22 if response == None: # user cancelled 23 if response == None: # user cancelled
23 raise StopIteration 24 raise StopIteration
24 25
25 elif response == True: 26 elif response:
26 report['SSHDConfig'] = root_command_output(['/usr/sbin/sshd', '-T']) 27 report['SSHDConfig'] = root_command_output(['/usr/sbin/sshd', '-T'])