Browse Source

include autoupdater/firmware info in nodes.json

Helge Jung 9 years ago
parent
commit
f44451b5f0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ffstatus/server.py

+ 3 - 0
ffstatus/server.py

@@ -284,11 +284,14 @@ angesprochen und sollte aus einer Mehrzahl von Gründen nicht
         nodes = []
         clientmapping = {}
         for node in self.server.storage.get_nodes():
+            sw = node.get('software', {})
             entry = {
                 'id': node.get('node_id'),
                 'name': node.get('hostname'),
                 'clients': [self.__map_item(clientmapping, x, "c")
                             for x in node.get('clients', [])],
+                'autoupdater': sw.get('autoupdater', 'unknown'),
+                'firmware': sw.get('firmware'),
             }
             geo = node.get('location', None)
             if geo is not None: