Explorar el Código

include hardware info of nodes

Helge Jung hace 9 años
padre
commit
8027b1cadc
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      ffstatus/alfred.py

+ 4 - 0
ffstatus/alfred.py

@@ -105,6 +105,10 @@ class AlfredParser:
                 else:
                     nodeinfo['macs'] = []
 
+            if 'hardware' in nodestatic:
+                hardware = nodestatic['hardware']
+                nodeinfo['hardware'] = hardware.get('model')
+
             if 'software' in nodestatic:
                 software = nodestatic['software']