move "[ACK]" to end of line

This commit is contained in:
Franziska Kunsmann 2023-07-06 09:13:25 +02:00
parent 972eb3b4a8
commit 85094987ab

View file

@ -111,7 +111,7 @@ def regenerate():
if not CONFIG['show_ack']: if not CONFIG['show_ack']:
continue continue
ack = '[ACK] ' ack = ' [ACK]'
else: else:
ack = '' ack = ''
@ -120,7 +120,7 @@ def regenerate():
services['services'].append({ services['services'].append({
'host': svc['attrs']['host_name'], 'host': svc['attrs']['host_name'],
'service': ack + svc['attrs']['display_name'], 'service': svc['attrs']['display_name'] + ack,
'state': int(svc['attrs']['state']), 'state': int(svc['attrs']['state']),
'type': int(svc['attrs']['state_type']), 'type': int(svc['attrs']['state_type']),
'output': limit_output_lines(svc['attrs']['last_check_result']['output'].splitlines()), 'output': limit_output_lines(svc['attrs']['last_check_result']['output'].splitlines()),