]> git.ipfire.org Git - ipfire.org.git/commitdiff
releases: Fix JSON syntax of the os-list object
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 May 2025 15:37:05 +0000 (15:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 May 2025 15:37:05 +0000 (15:37 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/releases.py

index 5990c4f6cdb300061e0b5e3d3fd4681f435fa4c3..cb0c361e2e87e2c300cd92f6d3c1e747637be308 100644 (file)
@@ -378,7 +378,7 @@ class Release(Object):
                        return {}
 
                # Make the document
-               return {
+               os_list = {
                        "name"         : self.name,
                        "description"  : "The Open Source Linux-based Firewall Operating System"
                                " with a Comprehensive Feature Set",
@@ -392,6 +392,12 @@ class Release(Object):
                        "image_download_sha256" : file.sha256,
                }
 
+               return {
+                       "os_list" : [
+                               os_list,
+                       ],
+               }
+
        @property
        def post(self):
                if self.__data.blog_id: