Added error message if ceilometer fail
diff --git a/views/ngXosViews/diagnostic/src/js/logicTopology.js b/views/ngXosViews/diagnostic/src/js/logicTopology.js
index f88b80a..5ab5d0f 100644
--- a/views/ngXosViews/diagnostic/src/js/logicTopology.js
+++ b/views/ngXosViews/diagnostic/src/js/logicTopology.js
@@ -17,6 +17,7 @@
var svg;
this.selectedInstances = [];
this.hideInstanceStats = true;
+ var _this = this;
const handleSvg = (el) => {
@@ -61,6 +62,12 @@
.then((instances) => {
LogicTopologyHelper.updateTree(svg);
})
+ .catch(e => {
+ _this.error = 'Service statistics are not available at this time. Please try again later.'
+ $timeout(() => {
+ _this.error = null;
+ }, 2000);
+ })
});
d3.select(window)