Fix encoding when reading system uuid

fixes
Vadim vtroshchinskiy 2024-10-27 23:29:07 +01:00
parent 2ffdd51110
commit 174c108879
1 changed files with 1 additions and 1 deletions

View File

@ -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