Переглянути джерело

include hardware info of nodes

Helge Jung 9 роки тому
батько
коміт
8027b1cadc
1 змінених файлів з 4 додано та 0 видалено
  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']