commit | ea5735057fcf62c74b28fe3f13a0ab96b8014852 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 06 15:29:00 2021 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Tue Oct 19 15:38:28 2021 +0200 |
tree | 8a6caa60a4f0dd619d9d32897afcc0466a05134d | |
parent | 05cd2e6d04724d89a8fef29af16b9767d6bcd0ba [diff] |
MINOR: sample: provide a generic var-to-sample conversion function We're using variable-to-sample conversion at least 4 times in the code, two of which are bogus. Let's introduce a generic conversion function that performs the required checks. (cherry picked from commit 168e8de1d06adc7aa3e7e2cc2a36935a77c79b9c) [cf: call to vars_get_by_desc() was updated to remove the third param] Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>