]> git.ipfire.org Git - ipfire.org.git/commitdiff
fireinfo: Allow system/model to be null
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Jan 2024 13:23:51 +0000 (13:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Jan 2024 13:23:51 +0000 (13:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/fireinfo.py

index 61a80fb54c13b5a712e17bb2a797af9322995762..277ad7816b4f4cde105ef37ca475d61484f4d4e9 100644 (file)
@@ -226,7 +226,7 @@ PROFILE_SCHEMA = {
                                        "type" : "integer",
                                },
                                "model" : {
-                                       "type"    : "string",
+                                       "type"    : ["string", "null"],
                                        "pattern" : r"^.{,80}$",
                                },
                                "release" : {