jpappa200 commented on code in PR #7192:
URL: https://github.com/apache/trafficcontrol/pull/7192#discussion_r1022031760


##########
tc-health-client/tmagent/tmagent.go:
##########
@@ -656,7 +656,9 @@ func (pi *ParentInfo) GetTOData(cfg *config.Cfg) error {
                if *sv.CDNName != cfg.CDNName {
                        continue
                }
-               if sv.Type == tc.MonitorTypeName && tc.CacheStatus(*sv.Status) 
== tc.CacheStatusOnline {
+               // added OR because MonitorTypeName has been updated to 
'TRAFFIC_MONITOR' and TO still has then listed as 'RASCAL'
+               // this will allow it to work either way and can be removed 
once TO is updated.
+               if (sv.Type == tc.MonitorTypeName || sv.Type == "RASCAL") && 
tc.CacheStatus(*sv.Status) == tc.CacheStatusOnline {

Review Comment:
   Only compared against shared constant.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to