Skip to content
Snippets Groups Projects
Commit 0880159e authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-status-page: fix handling of interface names containing dots

parent c69587fb
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,12 @@ function (Helper, SignalGraph, Signal) { ...@@ -225,6 +225,12 @@ function (Helper, SignalGraph, Signal) {
return !(a < b || a > b) return !(a < b || a > b)
} }
function getter(k) {
return function(obj) {
return obj[k]
}
}
return function (nodeInfo, stream, mgmtBus) { return function (nodeInfo, stream, mgmtBus) {
var stopStream, div var stopStream, div
...@@ -252,9 +258,10 @@ function (Helper, SignalGraph, Signal) { ...@@ -252,9 +258,10 @@ function (Helper, SignalGraph, Signal) {
remove.forEach(function (d) { div.removeChild(d) }) remove.forEach(function (d) { div.removeChild(d) })
for (var k in d) for (var k in d) {
if (!(k in have)) if (!(k in have))
new Interface(div, nodeInfo, k, stream.map("." + k), mgmtBus) new Interface(div, nodeInfo, k, stream.map(getter(k)), mgmtBus)
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment