diff --git a/src/middlewared/middlewared/plugins/system/vendor/vendor.py b/src/middlewared/middlewared/plugins/system/vendor/vendor.py index 5acd7a99ad509..654bd34c258c3 100644 --- a/src/middlewared/middlewared/plugins/system/vendor/vendor.py +++ b/src/middlewared/middlewared/plugins/system/vendor/vendor.py @@ -1,3 +1,4 @@ +import json import os from middlewared.api import api_method @@ -15,7 +16,7 @@ def name(self) -> str | None: try: with open(SENTINEL_FILE_PATH, 'r') as file: if contents := file.read(): - return contents + return json.loads(contents).get('name') except FileNotFoundError: return None