From ad9a7d3348d028a01460b033ebf45c8e6f1071c8 Mon Sep 17 00:00:00 2001 From: drewkerrigan Date: Fri, 27 Oct 2017 13:24:37 -0400 Subject: [PATCH] Check for MESOS_TCP --- marathon_lb.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/marathon_lb.py b/marathon_lb.py index d045ea47..fd826c5c 100755 --- a/marathon_lb.py +++ b/marathon_lb.py @@ -516,7 +516,8 @@ def config(apps, groups, bind_http_https, ssl_certs, templater, if app.healthCheck: template_backend_health_check = None if app.mode == 'tcp' \ - or app.healthCheck['protocol'] == 'TCP': + or app.healthCheck['protocol'] == 'TCP' \ + or app.healthCheck['protocol'] == 'MESOS_TCP': template_backend_health_check = templater \ .haproxy_backend_tcp_healthcheck_options(app) elif app.mode == 'http': @@ -559,7 +560,9 @@ def config(apps, groups, bind_http_https, ssl_certs, templater, server_health_check_options = None if app.healthCheck: template_server_healthcheck_options = None - if app.mode == 'tcp' or app.healthCheck['protocol'] == 'TCP': + if app.mode == 'tcp' \ + or app.healthCheck['protocol'] == 'TCP' \ + or app.healthCheck['protocol'] == 'MESOS_TCP': template_server_healthcheck_options = templater \ .haproxy_backend_server_tcp_healthcheck_options(app) elif app.mode == 'http':