making lint happy

This commit is contained in:
Hossein Shafagh 2019-08-13 09:35:57 -07:00
parent bf47f87c21
commit 07a9c56fb8
1 changed files with 1 additions and 4 deletions

View File

@ -31,7 +31,6 @@ from lemur.dns_providers import cli as cli_dns_providers
from lemur.notifications import cli as cli_notification from lemur.notifications import cli as cli_notification
from lemur.endpoints import cli as cli_endpoints from lemur.endpoints import cli as cli_endpoints
if current_app: if current_app:
flask_app = current_app flask_app = current_app
else: else:
@ -256,7 +255,7 @@ def remove_old_acme_certs():
log_data["message"] = "Skipping task: Task is already active" log_data["message"] = "Skipping task: Task is already active"
current_app.logger.debug(log_data) current_app.logger.debug(log_data)
return return
# Delete pending certs more than a week old # Delete pending certs more than a week old
for cert in pending_certs: for cert in pending_certs:
if datetime.now(timezone.utc) - cert.last_updated > timedelta(days=7): if datetime.now(timezone.utc) - cert.last_updated > timedelta(days=7):
@ -330,7 +329,6 @@ def sync_all_sources():
current_app.logger.debug(log_data) current_app.logger.debug(log_data)
return return
sources = validate_sources("all") sources = validate_sources("all")
for source in sources: for source in sources:
log_data["source"] = source.label log_data["source"] = source.label
@ -370,7 +368,6 @@ def sync_source(source):
current_app.logger.debug(log_data) current_app.logger.debug(log_data)
return return
current_app.logger.debug(log_data) current_app.logger.debug(log_data)
if task_id and is_task_active(function, task_id, (source,)): if task_id and is_task_active(function, task_id, (source,)):