Skip to content
Snippets Groups Projects
Commit b7c7c910 authored by Florent Thiery's avatar Florent Thiery
Browse files

fix relay parser, #20590

parent 6c23d24d
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ all_ok = True ...@@ -29,7 +29,7 @@ all_ok = True
def get_configured_relay(): def get_configured_relay():
status, out = subprocess.getstatusoutput('grep relayhost /etc/postfix/main.cf') status, out = subprocess.getstatusoutput('grep relayhost /etc/postfix/main.cf')
if status == 0: if status == 0:
return out.split('relayhost =')[1] return out.split('relayhost = ')[1]
def check_relay(): def check_relay():
global all_ok global all_ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment