From adf3c21495950ae4ea026ff92b6c48225fe92556 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsakalozos Date: Mon, 18 Dec 2017 10:56:34 +0200 Subject: [PATCH] Fix LB lint errors --- .../reactive/load_balancer.py | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py b/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py index c5272359572..ddb3845a10a 100644 --- a/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py +++ b/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py @@ -37,24 +37,25 @@ from subprocess import CalledProcessError apilb_nginx = """/var/log/nginx.*.log { - daily - missingok - rotate 14 - compress - delaycompress - notifempty - create 0640 www-data adm - sharedscripts - prerotate - if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\ - run-parts /etc/logrotate.d/httpd-prerotate; \\ - fi \\ - endscript - postrotate - invoke-rc.d nginx rotate >/dev/null 2>&1 - endscript + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 0640 www-data adm + sharedscripts + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\ + run-parts /etc/logrotate.d/httpd-prerotate; \\ + fi \\ + endscript + postrotate + invoke-rc.d nginx rotate >/dev/null 2>&1 + endscript }""" + @when('certificates.available') def request_server_certificates(tls): '''Send the data that is required to create a server certificate for