Преглед изворни кода

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']