From 9f0bcd6cbb43d47d86b9bdba9aecfc9c411f3613 Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 19 Nov 2010 20:34:43 +0000 Subject: [PATCH] Notified user if ganglia RPMs are not installed when "Monitor on" is clicked. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8220 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/monitor/gangliamon.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/xCAT-UI/js/monitor/gangliamon.js b/xCAT-UI/js/monitor/gangliamon.js index 330178769..23fcd6e86 100644 --- a/xCAT-UI/js/monitor/gangliamon.js +++ b/xCAT-UI/js/monitor/gangliamon.js @@ -597,10 +597,15 @@ function monitorNode(node, monitor) { for (var i in out) { // If an RPM is not installed if (out[i].indexOf('not installed') > -1) { - warningMsg += out[i] + '
'; warn = true; - } - } + + if (warningMsg) { + warningMsg += '
' + out[i]; + } else { + warningMsg = out[i]; + } + } // End of if + } // End of for // If there are warnings if (warn) {