Fix LB lint errors

This commit is contained in:
Konstantinos Tsakalozos 2017-12-18 10:56:34 +02:00
parent 0a55f4105c
commit adf3c21495

View File

@ -37,24 +37,25 @@ from subprocess import CalledProcessError
apilb_nginx = """/var/log/nginx.*.log { apilb_nginx = """/var/log/nginx.*.log {
daily daily
missingok missingok
rotate 14 rotate 14
compress compress
delaycompress delaycompress
notifempty notifempty
create 0640 www-data adm create 0640 www-data adm
sharedscripts sharedscripts
prerotate prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\ if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\
run-parts /etc/logrotate.d/httpd-prerotate; \\ run-parts /etc/logrotate.d/httpd-prerotate; \\
fi \\ fi \\
endscript endscript
postrotate postrotate
invoke-rc.d nginx rotate >/dev/null 2>&1 invoke-rc.d nginx rotate >/dev/null 2>&1
endscript endscript
}""" }"""
@when('certificates.available') @when('certificates.available')
def request_server_certificates(tls): def request_server_certificates(tls):
'''Send the data that is required to create a server certificate for '''Send the data that is required to create a server certificate for