浏览代码

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