Browse Source

bugfix: arrays use .append() instead of .add()

inconsistent Python API ftw!
Helge Jung 9 years ago
parent
commit
77efb33396
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ffstatus/basestorage.py

+ 1 - 1
ffstatus/basestorage.py

@@ -94,7 +94,7 @@ class BaseStorage(object):
             sum_clients += node.get('clientcount', 0)
             nodemacs = [x for x in node.get('macs', [])]
             if 'mac' in node:
-                nodemacs.add(node['mac'])
+                nodemacs.append(node['mac'])
             for client in node.get('clients', []):
                 if client in nodemacs:
                     continue