Commit 012bfb1f authored by Daniele Venzano's avatar Daniele Venzano

Fix Swarm stats for latest Swarm version, it will break with older versions

parent 867cc294
......@@ -98,6 +98,10 @@ class SwarmClient:
ns.memory_total = info["DriverStatus"][idx + node + idx2][1].split(' / ')[1]
idx2 += 1
ns.labels = info["DriverStatus"][idx + node + idx2][1:]
idx2 += 1
ns.error = info["DriverStatus"][idx + node + idx2][1]
idx2 += 1
ns.last_update = info["DriverStatus"][idx + node + idx2][1]
pl_status.nodes.append(ns)
idx += idx2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment