Skip to content
Permalink
Browse files

[debops.icinga] Fix fact script on Python3

  • Loading branch information...
drybjed committed Aug 11, 2019
1 parent 4dd374e commit a7216672821d94dab64e776f7f71ee8bfaac9ab5
Showing with 1 addition and 1 deletion.
  1. +1 −1 ansible/roles/debops.icinga/templates/etc/ansible/facts.d/icinga.fact.j2
@@ -25,7 +25,7 @@ output['installed'] = cmd_exists('icinga2')
try:
icinga_version_stdout = subprocess.check_output(
["dpkg-query", "-W", "-f=${Version}\n'",
"icinga2"]).split('-')[0]
"icinga2"]).decode('utf-8').split('-')[0]
output['version'] = icinga_version_stdout

except Exception:

0 comments on commit a721667

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