commit | 3c29aa63938562d43c866c18e4b2372c390466b5 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Mar 24 13:31:19 2020 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Mon Apr 27 09:39:37 2020 +0200 |
tree | 6205ebd9ea2944b36fb0ea21243c6f222a426737 | |
parent | efab6c61d946b7e421fb1843833d4b2f4737cdb9 [diff] |
MINOR: checks: Simplify functions to get step id and comment The loop to find the id corresponding to the current rule in tcpcheck_get_step_id() function has been simplified. And tcpcheck_get_step_comment() function now only relies on the current rule to find the rigth comment string. The step id is no longer used. To do so, we iterate backward from the current step to find the first COMMENT rule immediately preceedding the expect rule chain.