diff --git a/clients/record_os_version b/clients/record_os_version index d1f8206..eecf81c 100755 --- a/clients/record_os_version +++ b/clients/record_os_version @@ -5,7 +5,8 @@ import time import ltsdb_record -p = subprocess.run(["/usr/bin/lsb_release", "-ir"], capture_output=True, text=True) +p = subprocess.run(["/usr/bin/lsb_release", "-ir"], + stdout=subprocess.PIPE, universal_newlines=True) for ln in p.stdout.split("\n")[:-1]: m = re.match(r"(.*?)\s*:\s+(.*)", ln) if m: