From acc44f2b659850f6907ea4f7c6ba1a6671eee672 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 12 Oct 2015 21:04:40 -0700 Subject: [PATCH] Always delete lockfiles in _fix_symlinks --- letsencrypt/storage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/letsencrypt/storage.py b/letsencrypt/storage.py index 76b54fab3..207099e74 100644 --- a/letsencrypt/storage.py +++ b/letsencrypt/storage.py @@ -238,10 +238,10 @@ class RenewableCert(object): # pylint: disable=too-many-instance-attributes os.unlink(link) with open(lockfile) as f: os.symlink(f.readline().rstrip(), link) - else: - for _, lockfile in lockfiles: - if os.path.exists(lockfile): - os.unlink(lockfile) + + for _, lockfile in lockfiles: + if os.path.exists(lockfile): + os.unlink(lockfile) def current_target(self, kind): """Returns full path to which the specified item currently points.