diff --git a/src/main/resources/web/js/views/topology.js b/src/main/resources/web/js/views/topology.js index a82098e1802d9f57af92524fcea805ac9c0386f4..207a59c42426837742da0ca6d9bc4a308adb8163 100644 --- a/src/main/resources/web/js/views/topology.js +++ b/src/main/resources/web/js/views/topology.js @@ -43,7 +43,11 @@ window.TopologyView = Backbone.View.extend({ for (var i = 0; i < this.hosts.length; i++) { host = this.hosts[i]; - host.name = host.attributes['network-addresses'][0]['ip'] + "\n" + host.id; + if ('ip' in host.attributes['network-addresses'][0]) { + host.name = host.attributes['network-addresses'][0]['ip'] + "\n" + host.id; + } else { + host.name = host.id; + } host.group = 2; console.log(host); }