Closed rajanikantchirmade closed 5 years ago
enabled an automatic merge when the pipeline for 1d7dacbbfbb0d167d77a8f0263633308059bb960 succeeds
added 1 commit
enabled an automatic merge when the pipeline for d1c2cfead6b1449f5ca67bb79441cc4066842313 succeeds
added 1 commit
changed title from HALON-887: {-Add [TS], [RC], [principalRM] tags in hctl mero status-} to HALON-887: {+Tag principal RM in hctl mero status
output+}
If the last string value is an empty string, then this line will have trailing whitespace. We can do better than that.
added 2 commits
changed this line in version 3 of the diff
One :: String
would suffice for type inference to do its job.
The definition can be simplified to
rmTag :: Maybe M0.Service -> M0.Service -> String
rmTag (Just prm) svc | prm == svc = " (principal)"
rmTag _ _ = ""
But I'd suggest to define rmTag
right near the place where it is used:
let (serv_st, serv_extSt) = M0.displayServiceState sst
rmTag | Just svc == csrPrincipalRM = " (principal)"
| otherwise = ""
printf serv_pattern serv_st (fidStr svc) (show $ M0.s_type svc) rmTag
added 8 commits
master
merged