Skip to content
Permalink
Browse files

Merge branch 'drybjed-fix-locales-fact'

  • Loading branch information...
drybjed committed Aug 11, 2019
2 parents 65128da + 4e2c62c commit df369441ad599c1b0e50145ef40c4bc8b3beb90c
Showing with 2 additions and 2 deletions.
  1. +2 −2 ansible/roles/debops.monit/templates/etc/ansible/facts.d/monit.fact.j2
@@ -27,11 +27,11 @@ except subprocess.CalledProcessError:
pass

if monit_stdout:
for line in monit_stdout.split('\n'):
for line in monit_stdout.decode('utf-8').split('\n'):
if 'This is Monit version' in line:
output['version'] = line.split()[4]

if monit_services:
output['services'] = monit_services.strip().split('\n')
output['services'] = monit_services.decode('utf-8').strip().split('\n')

print(dumps(output, sort_keys=True, indent=2))

0 comments on commit df36944

Please sign in to comment.
You can’t perform that action at this time.