Skip to content

Commit 963a8ed

Browse files
author
John P. Artieda
committed
updates to work with status color yellow
1 parent 712b5ab commit 963a8ed

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

SiteReadiness/ReadinessMaker.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,20 @@ def FillSummaryMatrix(self):
176176
statusu=self.matrices.xmlInfo[sitename][col][coldate]['URL']
177177
statusc='green'
178178
if self.matrices.xmlInfo[sitename][col][coldate]['Status']=="pend":
179-
statusc='orange'
180179
status='-'
181-
elif self.cinfo.colorCodes[col][self.matrices.xmlInfo[sitename][col][coldate]['COLOR']] == "white":
182-
statusu=' '
183-
status='n/a'
184-
statusc='white'
180+
statusc='orange'
185181
elif self.cinfo.colorCodes[col][self.matrices.xmlInfo[sitename][col][coldate]['COLOR']] == "red":
186182
status=self.matrices.xmlInfo[sitename][col][coldate]['Status']
187183
statusu=self.matrices.xmlInfo[sitename][col][coldate]['URL']
188184
statusc='red'
185+
elif self.cinfo.colorCodes[col][self.matrices.xmlInfo[sitename][col][coldate]['COLOR']] == "yellow":
186+
status=self.matrices.xmlInfo[sitename][col][coldate]['Status']
187+
statusu=self.matrices.xmlInfo[sitename][col][coldate]['URL']
188+
statusc='yellow'
189+
elif self.cinfo.colorCodes[col][self.matrices.xmlInfo[sitename][col][coldate]['COLOR']] == "white":
190+
status='n/a'
191+
statusu=' '
192+
statusc='white'
189193
else:
190194
status='???'
191195
statusu='???'

SiteReadiness/data/readiness.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#
1111
# name column-id SR-tiers legend color-index:name print permission
1212
# SiteReadiness Status 45 - Site Readiness Status 3:red,4:yellow,5:green
13-
Downtimes_top 121 - Maintenance 1:brown,4:yellow,5:green,6:grey,8:white 1
14-
HammerCloud 135 T0,T1,T2,T3 HammerCloud 5:green,3:red,6:white,8:white 1
13+
Downtimes_top 121 - Maintenance 1:brown,4:yellow,5:green,6:gray,8:white 1
14+
HammerCloud 135 T0,T1,T2,T3 HammerCloud 5:green,3:red,6:gray,8:white 1
1515
SUMAvailability 126 T0,T1,T2,T3 SAM~Availability 5:green,3:red 1
1616
GoodT1linksfromT0 74 T1 Good~T1~links~from~T0 3:red,5:green 1
1717
GoodT1linksfromT1s 75 T1 Good~T1~links~from~T1s 3:red,5:green 1
@@ -27,4 +27,4 @@ T2linksfromT1s 37 T2 Active~T2~links~from~T1s
2727
T2linkstoT1s 36 T2 Active~T2~links~to~T1s 5:green,3:red 1
2828
IsSiteInSiteDB 100 - Is~Site~in~SiteDB? 5:green 0
2929
SRranking 96 - SR~Ranking~(last~15~days) 5:green,3:red 0
30-
WRControl 153 - Waiting~Room 5:green,3:red 1
30+
WRControl 153 - Waiting~Room 5:green,3:red,4:yellow 1

0 commit comments

Comments
 (0)