Browse Source

include hardware info of nodes

Helge Jung 9 years ago
parent
commit
8027b1cadc
1 changed files with 4 additions and 0 deletions
  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']