From cc6828622c5c8e8ceabc038e1c05cdbc59144305 Mon Sep 17 00:00:00 2001 From: "ederson.brilhante" Date: Tue, 5 Jul 2016 22:31:54 -0300 Subject: [PATCH] fix monitor --- networkapi/plugins/F5/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networkapi/plugins/F5/monitor.py b/networkapi/plugins/F5/monitor.py index 10d68dd11..e848cb872 100644 --- a/networkapi/plugins/F5/monitor.py +++ b/networkapi/plugins/F5/monitor.py @@ -68,8 +68,8 @@ def prepare_template(self, **kwargs): hr = kwargs['healthcheck'][i]['healthcheck_request'] if kwargs['healthcheck'][i]['healthcheck_type'] in ['HTTP', 'HTTPS']: - healthcheck_request = hr[0:-4] + \ - hr[-4:].replace('\r', '').replace('\n', '') + '\r\n\r\n' + healthcheck_request = hr[0:-8] + \ + hr[-8:].replace("\\r", '').replace("\\n", '') + "\\r\\n\\r\\n" else: healthcheck_request = hr