Fix encoding when reading system uuid
parent
2ffdd51110
commit
174c108879
|
@ -635,7 +635,7 @@ class OpengnsysGitLibrary:
|
|||
|
||||
def _get_system_uuid(self):
|
||||
self.logger.debug("Obtaining system UUID...")
|
||||
result = subprocess.run(["/usr/sbin/dmidecode", "-s", "system-uuid"], check=True, capture_output=True)
|
||||
result = subprocess.run(["/usr/sbin/dmidecode", "-s", "system-uuid"], check=True, capture_output=True, encoding='utf-8')
|
||||
uuid = result.stdout.strip()
|
||||
self.logger.debug("UUID is %s", uuid)
|
||||
return uuid
|
||||
|
|
Loading…
Reference in New Issue