mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-20 02:18:59 +00:00
Reject invalid platform format in manifest selection
This commit is contained in:
@@ -223,7 +223,10 @@ class RegistryManifestFetcher:
|
|||||||
|
|
||||||
# Platform format is "linux/amd64", "linux/arm64", etc.
|
# Platform format is "linux/amd64", "linux/arm64", etc.
|
||||||
parts = platform.split("/")
|
parts = platform.split("/")
|
||||||
if len(parts) >= 2:
|
if len(parts) < 2:
|
||||||
|
_LOGGER.warning("Invalid platform format: %s", platform)
|
||||||
|
return None
|
||||||
|
|
||||||
target_os, target_arch = parts[0], parts[1]
|
target_os, target_arch = parts[0], parts[1]
|
||||||
|
|
||||||
platform_manifest = None
|
platform_manifest = None
|
||||||
|
|||||||
Reference in New Issue
Block a user