Skip to content

Commit c6091e7

Browse files
author
Martin Östlund
committed
Fix use tl-config i text mode to get values as strings instead of bytes.
This fixes an issue where tlconfig would return true on every run, making the task non-idempotent
1 parent 7eed79c commit c6091e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/tlconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
TLCONFIG = "/opt/thinlinc/bin/tl-config"
3232

3333
def getvalue(param):
34-
tlproc = subprocess.Popen([TLCONFIG, "%s" % param], stdout=subprocess.PIPE)
34+
tlproc = subprocess.Popen([TLCONFIG, "%s" % param], stdout=subprocess.PIPE,universal_newlines=True)
3535
stdout, _ = tlproc.communicate()
3636
return stdout.rstrip()
3737

0 commit comments

Comments
 (0)