Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] Fixed to upgrade of the nodester platform

  • Loading branch information...
commit e4a50a40f02256538f9762f174cd71a9006e1992 1 parent 8c79758
@alejandro alejandro authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/apps.js
View
6 lib/apps.js
@@ -21,8 +21,10 @@ module.exports = {
if (data.length > 0) {
for (var i in data) {
var l = 'info',
- r = data[i].running;
- if (data[i].running == false || data[i].running == 'false' || data[i].running.indexOf('error') > -1 || data[i].running.indexOf('failed-to') > -1) {
+ r = data[i].running;
+ if (data[i].running.hasOwnProperty('indexOf') && (data[i].running.indexOf('error') >-1|| data[i].running.indexOf('failed-to') > -1))
+ var state = true;
+ if (data[i].running == false || data[i].running == 'false' || state) {
l = 'warn';
if (r === false || r == 'false') {
r = 'false'
Please sign in to comment.
Something went wrong with that request. Please try again.