]> git.ipfire.org Git - ipfire.org.git/commitdiff
fireinfo: Allow NULL for more fields
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Jan 2024 10:59:30 +0000 (10:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Jan 2024 10:59:30 +0000 (10:59 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/fireinfo.py

index bfbc673a81bbdd2c1d7c00398f06833fd601dd29..a81e75331dc99a5f6dddae78f1370ec56d927146 100644 (file)
@@ -123,7 +123,7 @@ PROFILE_SCHEMA = {
                                        "type" : "number",
                                },
                                "stepping" : {
-                                       "type" : "integer",
+                                       "type" : ["integer", "null"],
                                },
                                "vendor" : {
                                        "type"    : "string",
@@ -237,7 +237,7 @@ PROFILE_SCHEMA = {
                                        "type" : "number",
                                },
                                "vendor" : {
-                                       "type"    : "string",
+                                       "type"    : ["string", "null"],
                                        "pattern" : r"^.{,80}$",
                                },
                                "virtual" : {