mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:22:16 +02:00
Fixing tests broken by including the variable x in the logger debug messages
This commit is contained in:
@@ -141,17 +141,17 @@ class RenewableCert(object): # pylint: disable=too-many-instance-attributes
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
# Each element must be referenced with an absolute path
|
# Each element must be referenced with an absolute path
|
||||||
if any(not os.path.isabs(x) for x in
|
for x in (self.cert, self.privkey, self.chain, self.fullchain):
|
||||||
(self.cert, self.privkey, self.chain, self.fullchain)):
|
if not os.path.isabs(x):
|
||||||
logger.debug("Element %s is not referenced with an "
|
logger.debug("Element %s is not referenced with an "
|
||||||
"absolute file.", x)
|
"absolute file.", x)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Each element must exist and be a symbolic link
|
# Each element must exist and be a symbolic link
|
||||||
if any(not os.path.islink(x) for x in
|
for x in (self.cert, self.privkey, self.chain, self.fullchain):
|
||||||
(self.cert, self.privkey, self.chain, self.fullchain)):
|
if not os.path.islink(x):
|
||||||
logger.debug("Element %s is not a symbolic link.", x)
|
logger.debug("Element %s is not a symbolic link.", x)
|
||||||
return False
|
return False
|
||||||
for kind in ALL_FOUR:
|
for kind in ALL_FOUR:
|
||||||
link = getattr(self, kind)
|
link = getattr(self, kind)
|
||||||
where = os.path.dirname(link)
|
where = os.path.dirname(link)
|
||||||
|
|||||||
Reference in New Issue
Block a user