Skip to content

Commit 0ab9955

Browse files
authored
REST API
1 parent 96571df commit 0ab9955

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/reapi.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def funAnalyze(self, strHost):
5252

5353
except Exception as e:
5454
log.funLog(2, repr(e), 'err')
55+
break
5556

5657
def funGrades(self, diOper):
5758
# Parse endpoints to get the grades
@@ -61,7 +62,7 @@ def funGrades(self, diOper):
6162
strGrade = 'X'
6263
if strStaMess == 'Ready':
6364
strGrade = diEP['grade']
64-
lstGrades.append('%s %s, %s, %s' % (strGrade, diOper['host'], diEP['ipAddress'], strStaMess))
65+
lstGrades.append('[%s] %s, %s, %s' % (strGrade, diOper['host'], diEP['ipAddress'], strStaMess))
6566
return lstGrades
6667

6768
def funOpStatus(self, strHost):
@@ -75,7 +76,7 @@ def funOpStatus(self, strHost):
7576
strStatus = diOper['status']
7677
log.funLog(3, 'Transaction status: %s' % strStatus)
7778
if strStatus == 'ERROR':
78-
return ['X %s, %s' % (strHost, diOper['statusMessage'])]
79+
return ['[X] %s, %s' % (strHost, diOper['statusMessage'])]
7980

8081
except Exception as e:
8182
log.funLog(2, repr(e), 'err')

0 commit comments

Comments
 (0)