Skip to content
Permalink
Browse files

[debops.elastic_co] Fix fact script on Python3

  • Loading branch information...
drybjed committed Aug 11, 2019
1 parent 98e9b79 commit 4dd374eda8b1c5be96a72b6de515b462abe12750
@@ -46,7 +46,7 @@ def dpkg_query(packages):
(stdoutdata, _) = proc.communicate()

stdout_clean = stdoutdata.strip()
stdout_last = stdout_clean.rstrip(',')
stdout_last = stdout_clean.decode('utf-8').rstrip(',')
stdout_wrap = '{\n' + stdout_last + '\n}'

proc_output = loads(str(stdout_wrap))

0 comments on commit 4dd374e

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